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

Fix/Feat: Memoize VComponents from their ptrs. Add new router! #67

Merged
merged 2 commits into from
Jan 5, 2022

Conversation

jkelleyrtp
Copy link
Member

It's faster (and safer) to do a pointer check on VNode PTRs when we know that they're different.

This introduces some subtle behavior where changes to an element that passes children through multiple layers won't cause children to re-render on those layers.

Previously, we were getting double renders which cleared listeners/borrowed props (a bug). Now, if a Vcomp is the same between diffs, then we just don't bother diffing at all.

@jkelleyrtp jkelleyrtp changed the title Fix/Feat: Memoize VComponents from their ptrs Fix/Feat: Memoize VComponents from their ptrs. Add new router! Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

1 participant