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, } )
This discussion was converted from issue #3891 on February 07, 2025 00:46.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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
Beta Was this translation helpful? Give feedback.
All reactions