Skip to content

Commit

Permalink
feat: Add extension storage (ueberdosis#2069)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippkuehn authored Oct 22, 2021
1 parent bdaaa02 commit ccc5620
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/useEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ export const useEditor = (options: Partial<EditorOptions> = {}, deps: Dependency

setEditor(instance)

instance.on('transaction', forceUpdate)
instance.on('transaction', () => {
requestAnimationFrame(() => {
requestAnimationFrame(() => {
forceUpdate()
})
})
})

return () => {
instance.destroy()
Expand Down

0 comments on commit ccc5620

Please sign in to comment.