Skip to content

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