angular-redux / ng-redux

Angular bindings for Redux
MIT License
1.16k stars 177 forks source link

`$ngRedux.provideStore()` leaks subscription to provided store after `$rootScope.$destroy()` #247

Open AprilArcus opened 2 years ago

AprilArcus commented 2 years ago

Currently, $ngReduxProvider.provideStore(store) leaves a dangling subscription on store when the AngularJS app is torn down by $rootScope.$destroy(). The listener, and the private ngReduxStore referenced within it, will then be leaked.