useEditorEffect
returns stale view
properties on first render
#86
Labels
useEditorEffect
returns stale view
properties on first render
#86
Hey - it's me again! 😄 Another subtle issue regarding the ReactEditorView.
We have a non-editable editor that uses node views. These node views have logic that depends on the
view.editable
prop, which is accessed insideuseEditorEffect
. We noticed that this property is stale and shows an incorrect value on the first render cycle.CleanShot.2024-01-30.at.12.05.48.mp4
It would be great if this could be fixed so that either we have the correct values immediately or a view parameter that is null initially to indicate that the correct state is still pending.
The text was updated successfully, but these errors were encountered: