From 7028daa44a3317fe82aad798580fc2f01c216096 Mon Sep 17 00:00:00 2001 From: David Luzar <5153846+dwelle@users.noreply.github.com> Date: Tue, 28 Jan 2025 19:23:35 +0100 Subject: [PATCH] fix: remove flushSync to fix flickering (#9057) --- packages/excalidraw/components/App.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/excalidraw/components/App.tsx b/packages/excalidraw/components/App.tsx index ff8c273b75..1f44a81a5c 100644 --- a/packages/excalidraw/components/App.tsx +++ b/packages/excalidraw/components/App.tsx @@ -8320,9 +8320,7 @@ class App extends React.Component<AppProps, AppState> { this.scene.getNonDeletedElementsMap(), ); - flushSync(() => { - this.setState({ snapLines }); - }); + this.setState({ snapLines }); // when we're editing the name of a frame, we want the user to be // able to select and interact with the text input