You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any specific reason, there is no lifecycle event for componenDidUpdate? I have a usecase where I need to find something in the dom after the component has updated ? Any suggestions on how to go about this ?
The text was updated successfully, but these errors were encountered:
We do really need a lifecycle event for componentDidMount. However, it might not be that necessary to have a lifecycle event for componentDidUpdate. Because:
You can hook up events in componentDidUpdate for such use cases
There is no componentDidUpdate hook in virtual-dom
Having said that, we still need a lifecycle event for componentDidMount. And it's probably fine having other lifecycle events such as componentDidUpdate as well. I am going to make updates. The API is going to look like this:
Sorry it took me a long time to look back at this issue. We have now supported the component's lifecycles by introducing a new parameter for the component's definition function. Details can be found at Working with React
I'm now closing this issue. Feel free to reopen this if you have any questions. Thanks.
Is there any specific reason, there is no lifecycle event for componenDidUpdate? I have a usecase where I need to find something in the dom after the component has updated ? Any suggestions on how to go about this ?
The text was updated successfully, but these errors were encountered: