The onUpdate event of the Table of Contents extension is stuck in an infinite loop. #5875
-
I’m not sure if I did something wrong, but whenever I set the onUpdate in the extension’s configuration, it goes into an infinite loop. Here's the code snippet showing how I added the extension:
Can someone help me? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
You'll need to share more code than that. The onUpdate handler should not be an issue here |
Beta Was this translation helpful? Give feedback.
-
Have same issue here. In my case I use dynamic import for the extensions and somehow the table of contents extension cause the editor |
Beta Was this translation helpful? Give feedback.
I just did some testing and I can confirm that in tiptap v2.10 has this bug where
onUpdate
in Table of Contents extension run on endless loop and cause editoronTransaction
run on endless loop as well. I didn't have this issue on v2.9. (The dynamic import has nothing to do with this bug after some testing). When I remove the Table of Contents extension, the editoronTransaction
runs normally.