Subscriptions that are torn down in componentDidUnmount need to be re-established in componentDidMount as both functions can be called multiple times in concurrent mode.
I was not sure how critical the GC related comments are. I don't know if that behavior can be kept when we need to re-establish the subscriptions.
Subscriptions that are torn down in
componentDidUnmount
need to be re-established incomponentDidMount
as both functions can be called multiple times in concurrent mode.I was not sure how critical the GC related comments are. I don't know if that behavior can be kept when we need to re-establish the subscriptions.