The tiptap useEditor() hook creates an awkward challenge for passing event handlers into its plugins and native events. By introducing a memoized editor, we should be able to shuttle events out of tiptap without retriggering the useEditor hook. The emitter can then change its registered handlers with each state update.
This commit is contained in:
parent
5e63d3164b
commit
4a59178cd2
4 changed files with 32 additions and 15 deletions
|
@ -70,6 +70,7 @@
|
|||
"base64-js": "^1.5.1",
|
||||
"bcp-47-match": "^2.0.3",
|
||||
"email-validator": "^2.0.4",
|
||||
"eventemitter3": "^5.0.1",
|
||||
"expo": "~48.0.18",
|
||||
"expo-application": "~5.1.1",
|
||||
"expo-build-properties": "~0.5.1",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue