Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fully split CustomNodeView into a separate, memoized component #12

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

smoores-dev
Copy link
Contributor

Plain custom node views had been broken since we implemented SSR. When they were pulled into their own component, it messed up some of the layout effect ordering and triggering, such that we no longer attached them to the DOM.

To resolve this, the NodeView component now either renders ReactNodeView or CustomNodeView, each of which manages its own full lifecycle, decorations, etc.

Plain custom node views had been broken since we implemented SSR.
When they were pulled into their own component, it messed up some of
the layout effect ordering and triggering, such that we no longer
attached them to the DOM.

To resolve this, the NodeView component now either renders ReactNodeView
or CustomNodeView, each of which manages its own full lifecycle, decorations,
etc.
@smoores-dev smoores-dev requested review from tilgovi and a team as code owners January 31, 2025 22:59
@smoores-dev smoores-dev merged commit f1f5f19 into main Jan 31, 2025
2 checks passed
@smoores-dev smoores-dev deleted the fix-custom-node-views branch January 31, 2025 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant