This commit is contained in:
dwelle 2023-08-10 12:13:26 +02:00
parent 27ddc3d9bc
commit a582684f2c

View File

@ -3867,11 +3867,11 @@ class App extends React.Component<AppProps, AppState> {
// Since we are reading from previous state which is not possible with
// automatic batching in React 18 hence using flush sync to synchronously
// update the state. Check https://github.com/excalidraw/excalidraw/pull/5508 for more details.
flushSync(() => {
this.setState({
editingLinearElement,
});
// flushSync(() => {
this.setState({
editingLinearElement,
});
// });
}
if (editingLinearElement?.lastUncommittedPoint != null) {
this.maybeSuggestBindingAtCursor(scenePointer);