You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refer to #4612 and the PR
it can be changed directly by editor.children = value above your return statement, I changed mine to this way and it works out for general first render, but I'm not sure about the real time cooperative editing.
The approach is still questionable for me. I don't have a complex project that is able to test against the effect of this breaking change.
Description
Changing state programmatically won't work in [email protected]. For example, setting value from useEffect doesn't work:
Recording
I really hope sandbox will be sufficient for observing this behaviour.
Sandbox
https://codesandbox.io/s/slate-set-value-4fxxc?file=/src/Editor/index.js
Steps
To reproduce the behavior:
Hello world
. But it should[email protected]
Expectation
I expect slate state to be controlled as in [email protected]
Environment
The text was updated successfully, but these errors were encountered: