Skip to content
This repository was archived by the owner on Feb 3, 2026. It is now read-only.

Bugfix: Unsubscribe from Redux store when component is unmounted#71

Open
taueres wants to merge 2 commits into
trivago:masterfrom
taueres:fix-unsubscribe-from-store-when-component-is-unmounted
Open

Bugfix: Unsubscribe from Redux store when component is unmounted#71
taueres wants to merge 2 commits into
trivago:masterfrom
taueres:fix-unsubscribe-from-store-when-component-is-unmounted

Conversation

@taueres

@taueres taueres commented Oct 31, 2018

Copy link
Copy Markdown
Contributor

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.

@abertelle

Copy link
Copy Markdown
Contributor

Is this PR still needed or can we close it? I saw there is another one with the exact same name #73, which one of the two is the one we want to merge eventually?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants