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

Generate lifecycle methods at container creation #263

Merged
merged 1 commit into from
Apr 5, 2015
Merged

Generate lifecycle methods at container creation #263

merged 1 commit into from
Apr 5, 2015

Conversation

taion
Copy link
Member

@taion taion commented Apr 5, 2015

For #249

This also fixes a bug with componentWillReceiveProps where the base implementation would be overwritten by the configured one. I didn't explicitly add a test for this, but the existing test fails with thew new code without the change to RESERVED_FUNCTIONS.

@taion
Copy link
Member Author

taion commented Apr 5, 2015

Perhaps it would be better to change RESERVED_FUNCTIONS to be Object.keys(BASE_SPECIFICATION), where BASE_SPECIFICATION is defined as a constant, then special-case done to be overridable.

@jhollingworth
Copy link
Contributor

👍 looks good, thanks!

jhollingworth added a commit that referenced this pull request Apr 5, 2015
Generate lifecycle methods at container creation
@jhollingworth jhollingworth merged commit c43aa8d into martyjs:master Apr 5, 2015
@taion taion deleted the jjia/container-lifecycle branch April 7, 2015 22:15
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.

2 participants