tiptap/packages/react
Nick Perez 6a0f4f30f8
fix(react): attempt to cleanup editor instances, on creation #5492 (#5496)
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.
2024-08-15 08:55:42 +02:00
..
src fix(react): attempt to cleanup editor instances, on creation #5492 (#5496) 2024-08-15 08:55:42 +02:00
CHANGELOG.md chore(release): release version v2.6.3 (#5484) 2024-08-14 20:52:53 +02:00
package.json chore(release): release version v2.6.3 (#5484) 2024-08-14 20:52:53 +02:00
README.md docs: consistent naming (#3882) 2023-03-27 11:20:31 +02:00
rollup.config.js Shared rollup config (#5403) 2024-07-27 12:46:39 +02:00

@tiptap/react

Version Downloads License Sponsor

Introduction

Tiptap is a headless wrapper around ProseMirror a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as New York Times, The Guardian or Atlassian.

Official Documentation

Documentation can be found on the Tiptap website.

License

Tiptap is open sourced software licensed under the MIT license.