Bladeren bron

fix: remove flushSync to fix flickering (#9057)

David Luzar 7 maanden geleden
bovenliggende
commit
7028daa44a
1 gewijzigde bestanden met toevoegingen van 1 en 3 verwijderingen
  1. 1 3
      packages/excalidraw/components/App.tsx

+ 1 - 3
packages/excalidraw/components/App.tsx

@@ -8320,9 +8320,7 @@ class App extends React.Component<AppProps, AppState> {
             this.scene.getNonDeletedElementsMap(),
             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
           // when we're editing the name of a frame, we want the user to be
           // able to select and interact with the text input
           // able to select and interact with the text input