Duplicate: Value in react is not being used as the source of truth #4824
stevemarksd
started this conversation in
General
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
slate/packages/slate-react/src/components/slate.tsx
Line 17 in 8066150
I've been playing with this for a while, but seems like you need to edit the state directly on the
Editorinstead of just changing thevaluefrom the use state.if you call
setValuewith your own data, is just ignored, the data doesn't update in the editor, this is a bit weird. Could we make the source of truth in react or is not possible?What do you think?
Beta Was this translation helpful? Give feedback.
All reactions