undux
undux copied to clipboard
Make undux React 18 compatible
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.
I've just updated all the dependencies to latest. Mind rebasing? Then tests should pass.