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
Slate falls because the previous position does not match the new value. You can experimentally decide for yourself what is more convenient for you to use to solve this problem.
When the editor content is updated from outside (e.g. by a database call) then the editor crashes
I just added a
useEffect
to the plain text example to show. Just start writing sth. behind the default text in the editor and it will crash.See:
https://codesandbox.io/s/slate-reproductions-forked-qets6
added code:
useEffect(() => { setInterval(() => setValue(initialValue), 2000); }, []); ;
Any idea how I can prevent / workaround this?
The text was updated successfully, but these errors were encountered: