Commit 523c864
Prevent dangling debounced extractHeadings function
Our Tiptap heading extension registers a debounced extractHeadings
function for onUpdate. If the editor gets removed but a debounced
extractHeadings call is still pending, this leads to errors (which
sometimes break tests).
So let's check whether the editor is still alive and only call
debounced extractHeadings in this case.
Signed-off-by: Jonas <[email protected]>1 parent 2843e00 commit 523c864
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
0 commit comments