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
If a component have setInterval to update itself's state,
it won't be garbage collected.
As far as I know, this is related to how javascript handle an object's life cycle,
so... any insight on this?
Start timer in componentDidMount as componentWillMount is not symmetric to componentWillUnmount (the former will be executed on server while the latter won't).
If a component have
setInterval
to update itself's state,it won't be garbage collected.
As far as I know, this is related to how javascript handle an object's life cycle,
so... any insight on this?
demo gist: https://gist.github.com/curist/10a90d741277369196e7
The text was updated successfully, but these errors were encountered: