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

Support for key attribute to aid reconcilation #62

Merged
merged 3 commits into from
May 16, 2016
Merged

Conversation

tbranyen
Copy link
Owner

@tbranyen tbranyen commented Apr 26, 2016

Adds in a smart algorithm to detect changes between element keys.

@tbranyen tbranyen mentioned this pull request Apr 26, 2016
@tbranyen tbranyen force-pushed the better-remove branch 2 times, most recently from a03d343 to 51bfa30 Compare April 26, 2016 15:24
@tbranyen
Copy link
Owner Author

tbranyen commented May 7, 2016

I've been working on a smarter algorithm. This current one is not suitable for use. It was merely a real quick stab at what the API would look like. I'll land the good stuff once I have it working and well tested.

Smarter algo added!

@tbranyen tbranyen force-pushed the better-remove branch 3 times, most recently from f3039f7 to c2900be Compare May 15, 2016 08:25
This is a proof-of-concept implementation that needs more testing. It
works well for a super basic use case, but I need to do more testing to
ensure it works as expected.

I've also migrated the `is` attribute directly to the VDOM descriptor.
This eliminated two `Array#some` loops.

I resisted the urge to change to more `const`s.
Fixed a bug where slice was used instead of concat for producing an
array of elements. I explicitly filter elements to detached/attached to
be real elements (no text nodes).

This includes a smarter remove for key attributes. In the future it'd be
nice to do a replace by key as well for sorting.
@tbranyen tbranyen merged commit 09667f2 into master May 16, 2016
@tbranyen tbranyen deleted the better-remove branch May 16, 2016 07:49
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