mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 23:15:15 +08:00
6a0f4f30f8
The core of the change ended up being quite simple, because we can create the editor within the first render, we need to already schedule it's destruction. Scheduling a destruction, ensures that an instance that was created in that first render pass can be cleaned up. Waiting one more tick than before ensures that we don't accidentally destroy an editor instance that could actually be valid in the next render pass. In StrictMode, there will be two editor instances created, the first will be created & quickly destroyed in 2 ticks. In Normal React, there will only ever be 1 instance created and destroyed only on unmount. |
||
---|---|---|
.. | ||
preview | ||
public | ||
setup | ||
src | ||
CHANGELOG.md | ||
includeDependencies.txt | ||
index.html | ||
package.json | ||
postcss.config.cjs | ||
tailwind.config.js | ||
tsconfig.base.json | ||
tsconfig.react.json | ||
tsconfig.vue-2.json | ||
tsconfig.vue-3.json | ||
vite.config.ts |