• Robert Knight's avatar
    Trigger a digest cycle after Redux action dispatches · b42d717b
    Robert Knight authored
    At various places in our code that receive external inputs (eg.
    WebSocket messages, messages from other frames etc.) we have to wrap
    that handling in a $scope.$apply() call or similar in order to trigger
    Angular's change detection cycle and sync UI components with the updated
    state of the app after handling that input.
    
    Since most changes to app state now happen as a result of a Redux action
    being dispatched, we can use Redux' built-in middleware mechanism for
    adding logic around app state changes.
    b42d717b
Name
Last commit
Last update
.github Loading commit data...
h Loading commit data...
images Loading commit data...
scripts Loading commit data...
.gitignore Loading commit data...
.hound.yml Loading commit data...
.jscsrc Loading commit data...
.jshintignore Loading commit data...
.jshintrc Loading commit data...
.npmignore Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
npm-shrinkwrap.json Loading commit data...
package.json Loading commit data...