Skip to content

Commit

Permalink
Fixing reoccurring issue ueberdosis#3331 and improving related PR ue…
Browse files Browse the repository at this point in the history
…berdosis#3533 (ueberdosis#3862)

* Add custom paragraph example

* Remove unnecessary queueMicrotask
  • Loading branch information
KentoMoriwaki committed Mar 27, 2023
1 parent 44a01f0 commit 80bba93
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/EditorContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ export class PureEditorContent extends React.Component<EditorContentProps, Edito
// lifecycle methods, and React doesn't allow calling flushSync from inside
// a lifecycle method.
if (this.initialized) {
queueMicrotask(() => {
flushSync(fn)
})
flushSync(fn)
} else {
fn()
}
Expand Down

0 comments on commit 80bba93

Please sign in to comment.