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
Currently there are only some events dispatched during lifecycle methods (willAttach, attached, willDetach, detached and rendered). I think it would be useful (and more consistent) to provide events for all existing lifecycle methods, so components' users can listen for these changes.
I have made a PR (#299) for the disposed lifecycle method, but it would be interesting adding events for the rest of them (created, willReceiveState...).
Example use case for the disposed event: I am storing a component inside a variable, and setting that variable to null when the component is disposed.
The text was updated successfully, but these errors were encountered:
Currently there are only some events dispatched during lifecycle methods (willAttach, attached, willDetach, detached and rendered). I think it would be useful (and more consistent) to provide events for all existing lifecycle methods, so components' users can listen for these changes.
I have made a PR (#299) for the disposed lifecycle method, but it would be interesting adding events for the rest of them (created, willReceiveState...).
Example use case for the disposed event: I am storing a component inside a variable, and setting that variable to null when the component is disposed.
The text was updated successfully, but these errors were encountered: