Skip to content

How do I update value in React? #1484

Closed Answered by lkdm
lkdm asked this question in Q&A
Discussion options

You must be logged in to vote

This took me hours to find the answer for, but the solution is to add a dependency array at the end of the useEditor hook;

useEditor((root) => Editor.make(), [eventTimestamp])

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lkdm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant