Closed ipassynk closed 8 years ago
ng-redux
is not a port of react-redux
to angular. They have a similar API and concepts but that's it.
So you shouldn't read the doc of react-redux
and expect that to apply to ng-redux
.
This specific behaviour is indeed not implemented in ng-redux.
Simplest way to do it is just do unsubscribe directly.
It's a little bit less elegant :)
Got it. May be you can add this clarification into the documentation. Thanks.
Looks like the connect function from ng-redux subscribes to the store even mapStateToProps param is null? Redux-react docs says: "If you omit it, the component will not be subscribed to the Redux store. "
I am doing the following and see that a new subscription is created.