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
This might be by design, but I assumed that the usePlateEditor state would be updated when the value changes, but I have to manually pass it to the optional deps array like so:
The following code won't update the `<Plate readOnly />` editor when the value has changed. This is not necessarily intuitive.const editor = usePlateEditor( { value, plugins, } )
Plate version
40.3.4
Slate React version
0.112.0
Screenshots
No response
Logs
No response
Browsers
Chrome
The text was updated successfully, but these errors were encountered:
Description
This might be by design, but I assumed that the
usePlateEditor
state would be updated when thevalue
changes, but I have to manually pass it to the optional deps array like so:In order for it to be updated.
Reproduction URL
No response
Reproduction steps
Plate version
40.3.4
Slate React version
0.112.0
Screenshots
No response
Logs
No response
Browsers
Chrome
The text was updated successfully, but these errors were encountered: