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 component update bug #103

Merged
merged 2 commits into from Jul 27, 2018
Merged

fix component update bug #103

merged 2 commits into from Jul 27, 2018

Conversation

refractalize
Copy link
Member

Issue: virtual-dom doesn't seem to compare two widgets for equality based on key - or at least, if one key is undefined and the other isn't they're compared as equal and the component is updated, not calling the onadd event.

Secondly, if two components have different constructors but undefined keys, then they're considered equal. This is more of a hyperdom issue.

In any case, in this patch we compare the keys and constructors before deciding whether to update or create a component.

@refractalize
Copy link
Member Author

@joshski this should fix that issue you saw the other day

@refractalize refractalize merged commit 58ec010 into master Jul 27, 2018
@refractalize
Copy link
Member Author

in 0.12.0 @joshski

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.

None yet

1 participant