ng-redux icon indicating copy to clipboard operation
ng-redux copied to clipboard

$digest may be triggered before the actual state change

Open cozmy opened this issue 7 years ago • 0 comments

Triggering the $digest in the middleware is a bad idea as it may happen before the actual state change. It should be triggered in store.subscribe() as this is a change listener which "will be called any time an action is dispatched, and some part of the state tree may potentially have changed".

cozmy avatar Nov 21 '18 09:11 cozmy