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

[Glimmer 2] Implement component lifecycle hooks #13168

Merged
merged 4 commits into from
Apr 29, 2016
Merged

Conversation

chancancode
Copy link
Member

No description provided.

@homu
Copy link
Contributor

homu commented Mar 26, 2016

☔ The latest upstream changes (presumably #13137) made this pull request unmergeable. Please resolve the merge conflicts.

@rwjblue
Copy link
Member

rwjblue commented Apr 17, 2016

Where are we at with this?

@chancancode
Copy link
Member Author

Finished the implementation and updated/rebased to work with latest Glimmer/Ember! 🎉

@chancancode chancancode changed the title [WIP] [Glimmer 2] Implement component lifecycle hooks [Glimmer 2] Implement component lifecycle hooks Apr 29, 2016
The original implementation of the hooks in HTMLBars does a deeper walk
than necessary (using the AlwaysDirty validator), resulting in executing
the experimental "new hooks" too often.

In particular, hooks were executed downstream from the original call to
`rerender()` even if the rerendering component did not use `this.set()`
to update the arguments of downstream components.

Because Glimmer uses a pull-based model instead of a blunt push-based
model, we can avoid a deeper traversal than is necessary.
@chancancode chancancode merged commit c6996a5 into master Apr 29, 2016
@chancancode chancancode deleted the lifecycle-hooks branch April 29, 2016 01:23
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.

4 participants