Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

useEditorEffect returns stale view properties on first render #86

Open
konstantinmuenster opened this issue Jan 30, 2024 · 0 comments
Open

Comments

@konstantinmuenster
Copy link

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 inside useEditorEffect. 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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants