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): remove unnecessary props/attrs assertions #2639

Merged
merged 1 commit into from
Jan 14, 2022

Conversation

pmdartus
Copy link
Member

Details

This PR removes the assertions in properties and attributes patching (#2630 (comment)).

Those assertions were added at the time where we were still figuring out how to compile HTML to JavaScript. Those asserts will never execute as long as the VNodes originates from a template generated by the @lwc/template-compiler. The assertions should be safe to delete now.

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

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 c7833d3 into master Jan 14, 2022
@pmdartus pmdartus deleted the pmdartus/remove-props-assertions branch January 14, 2022 13:37
Copy link
Contributor

@caridy caridy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent!

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