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
Describe the bug
Following the documented pattern of use with ReactJS, where an observable is subscribed to in the componentWillMount and unsubscribed in componentWillUnmount, sometimes leads to Warning: Can't call setState (or forceUpdate) on an unmounted component.
Describe the bug
Following the documented pattern of use with ReactJS, where an
observable
is subscribed to in thecomponentWillMount
and unsubscribed incomponentWillUnmount
, sometimes leads toWarning: Can't call setState (or forceUpdate) on an unmounted component.
Example
https://codepen.io/anon/pen/EGaWEX
Expected behavior
Expecting that the subscribe function is not executed after
unsubscribe
The text was updated successfully, but these errors were encountered: