Editable state isn't reactive #2850
Labels
Info: Stale
The issue or pullrequest has not been updated in a while and might be stale
Type: Bug
The issue or pullrequest is related to a bug
What’s the bug you are facing?
Changing the editor state (for example):
editor.setEditable
Doesn't creative a reactive change to
props.editor.isEditable
Which prevents Nodes from reacting to a change to the editable state
Which browser was this experienced in? Are any special extensions installed?
all!
How can we reproduce the bug on our side?
Create an editor
Create a custom Node
editor.setEditable(false)
Notice that code in the Node
useEffect(()=> {
alert('test')
}, [props.editor.isEditable])
is not fired
Can you provide a CodeSandbox?
No response
What did you expect to happen?
I expected it to have a reactive state change
Anything to add? (optional)
No response
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: