From 3d0fff9b22f82ae2776b86beb3eeb89dfe0be7aa Mon Sep 17 00:00:00 2001 From: Kyle Alwyn Date: Mon, 12 Dec 2022 22:57:42 -0800 Subject: [PATCH] Queue flushSync microtask Do the same thing as https://github.com/ueberdosis/tiptap/pull/3188 --- packages/react/src/EditorContent.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react/src/EditorContent.tsx b/packages/react/src/EditorContent.tsx index 02a398ef370..4f097507306 100644 --- a/packages/react/src/EditorContent.tsx +++ b/packages/react/src/EditorContent.tsx @@ -79,7 +79,9 @@ export class PureEditorContent extends React.Component { + flushSync(fn) + }) } else { fn() }