-
Notifications
You must be signed in to change notification settings - Fork 98
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
[Feature Request] React style component Lifecycle hooks #66
Comments
On it :) |
Oh, wow! I'm excited for this. This will make deploying animation so much easier! Thanks you! |
Fixed in 4.9 |
See the AbsoluteLayoutExample for an example of the api use. |
Man this is great. Had a look at the example code, looks easy enough. Can't wait to try it out. Thanks so much Alex this is so helpful! 👍 |
Hi Alex, Thanks for taking a look at this! - Jason W. |
will take care of it and propagate it to children
…On Mon, 31 Jul 2017 at 08:44, Jason Wilhelm ***@***.***> wrote:
Hi Alex,
I did some testing of the new method didMount() in my components after
studying your example in the demo project and discovered that the method
doesn't get called in child components that are nested in parent
components. Apparently, the method only works if the component is the Root
node of the ViewController. This doesn't seem helpful beyond the base
node of my view hierarchy.
Thanks for taking a look at this! - Jason W.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#66 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOlAS_KaEaxJMbpjnQDtno4vEUpUCcOks5sTfZBgaJpZM4OdgqW>
.
|
Thanks so much Alex! :) |
I'm also curious if the |
I was reading through the React documentation and they talked about adding lifecycle hooks to a class: https://facebook.github.io/react/docs/state-and-lifecycle.html
with
componentDidMount()
and
componentWillUnmount()
These component methods would be very handy in addition to the
willUpdate()
anddidUpdate()
methods already available.For example, I want to trigger animations when I create and present a component to the screen and also I want to trigger another just before the component is removed.
Thanks for your consideration! :)
The text was updated successfully, but these errors were encountered: