melody
melody copied to clipboard
Bugfix: Unsubscribe from Redux store when component is unmounted
connect was not correctly unsubscribing from the Redux store when componentWillUnmount was triggered in the childInstance.
I'm now forwarding the event componentWillUnmount to the WrapperComponent so that the cleanup is performed as expected.
Is this PR still needed or can we close it? I saw there is another one with the exact same name https://github.com/trivago/melody/pull/73, which one of the two is the one we want to merge eventually?