Skip to content
Snippets Groups Projects
Commit 8b516ad6 authored by David Bühler's avatar David Bühler
Browse files

[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.
parent 22151f45
No related branches found
No related tags found
No related merge requests found
...@@ -27,10 +27,10 @@ const ASTinfo = () => { ...@@ -27,10 +27,10 @@ const ASTinfo = () => {
React.useEffect(() => { React.useEffect(() => {
buffer.clear(); buffer.clear();
if (marker && data) { if (data) {
buffer.printTextWithTags(data, { css: 'color: blue' }); buffer.printTextWithTags(data, { css: 'color: blue' });
} }
}, [marker, buffer, data]); }, [buffer, data]);
// Callbacks // Callbacks
function onSelection(name: string) { function onSelection(name: string) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment