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

refactor(engine-core): Extract hydration from rendering logic #2648

Merged
merged 9 commits into from
Jan 31, 2022

Conversation

pmdartus
Copy link
Member

@pmdartus pmdartus commented Jan 19, 2022

Details

This PR is part of the larger refactor for coupling the rehydration logic from the diffing logic.

It breaks apart the rehydration logic from the rendering logic. The new entry point for the hydration logic is now the hydrateChildren function. As a side effect, the rehydration logic can be completely tree-shaken if hydrateComponent is never imported by the application.

This PR also set the foundations for getting rid of the VNodes hooks. It adds a new type property that can be used to choose the appropriate diffing/hydration logic without relying on hooks.

Does this pull request introduce a breaking change?

  • ✅ No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • ✅ No, it does not introduce an observable change.

GUS work item

W-10409559

@pmdartus pmdartus merged commit 045f093 into master Jan 31, 2022
@pmdartus pmdartus deleted the pmdartus/render-refactor branch January 31, 2022 15:03
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.

3 participants