Commit acb11b4
Don't empty list of headings in onDestroy
When switching pages in Collectives, `onDestroy` from the old editor
instance happens *after* `onCreate` of the new editor instance. Since
both share the same vuex store, this leads to a race condition where the
old instance clears the list of headings of the new instance.
Since we always set headings during `onCreate` anyway, there's no need
to clear the headings in `onDestroy`, so let's simply get rid of it.
Signed-off-by: Jonas <[email protected]>1 parent e3fb943 commit acb11b4
File tree
2 files changed
+1
-10
lines changed- src
- components/Editor
- nodes/Heading
2 files changed
+1
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 48 | | |
57 | 49 | | |
58 | 50 | | |
| |||
0 commit comments