From 8b516ad611f7b3e9d6a17f3d657c97f61dc275b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20B=C3=BChler?= <david.buhler@cea.fr>
Date: Thu, 4 Jun 2020 16:46:29 +0200
Subject: [PATCH] [ivette] ASTinfo: fixes a flickering effect when the panel is
 updated.

The panel was updated as soon as the marker changed, and then when the request
response changed.
---
 ivette/src/renderer/ASTinfo.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ivette/src/renderer/ASTinfo.tsx b/ivette/src/renderer/ASTinfo.tsx
index 4e21ed0a246..ec3106bddd7 100644
--- a/ivette/src/renderer/ASTinfo.tsx
+++ b/ivette/src/renderer/ASTinfo.tsx
@@ -27,10 +27,10 @@ const ASTinfo = () => {
 
   React.useEffect(() => {
     buffer.clear();
-    if (marker && data) {
+    if (data) {
       buffer.printTextWithTags(data, { css: 'color: blue' });
     }
-  }, [marker, buffer, data]);
+  }, [buffer, data]);
 
   // Callbacks
   function onSelection(name: string) {
-- 
GitLab