Tiptap editor not updating as expected.
My tiptap editor is being passed the content value via props but when the prop updates, the content does not update.
This is what my component looks like -
When i add the following useEffect, it works fine -
I was surprised by this behavior but does it make sense? If an input to
useEditor
changes, wouldn't it re-create the editor?0 Replies