Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unsubscribe from provided store when AngularJS app is destroyed #246

Merged
merged 1 commit into from
May 4, 2022

Conversation

AprilArcus
Copy link
Contributor

@AprilArcus AprilArcus commented Apr 18, 2022

This PR registers an unsubscribe callback with $rootScope.$on('$destroy', ...) in order to prevent the memory leak identified in #247.

@AprilArcus AprilArcus force-pushed the cleanup-subscription branch from 81a7bd7 to 8bf7818 Compare April 18, 2022 05:56
@AprilArcus AprilArcus changed the title unsubscribe from Redux when AngularJS app is destroyed unsubscribe from Provided Store when AngularJS app is destroyed Apr 18, 2022
@AprilArcus AprilArcus force-pushed the cleanup-subscription branch from 8bf7818 to 2812f6d Compare April 18, 2022 06:10
@AprilArcus AprilArcus changed the title unsubscribe from Provided Store when AngularJS app is destroyed unsubscribe from provided store when AngularJS app is destroyed Apr 18, 2022
@AprilArcus AprilArcus force-pushed the cleanup-subscription branch from 2812f6d to 24617b1 Compare April 18, 2022 20:58
@AprilArcus AprilArcus force-pushed the cleanup-subscription branch from 24617b1 to fbfb2cc Compare April 18, 2022 21:02
@oliviernt oliviernt merged commit 1237d52 into angular-redux:master May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants