Move from Redux to vanilla Flux

This commit is contained in:
John Furrow
2015-12-14 21:30:19 -08:00
parent 86c5886ad2
commit 81aa20e60d
23 changed files with 999 additions and 1064 deletions
@@ -1,5 +1,15 @@
import {Dispatcher} from 'flux';
let AppDispatcher = new Dispatcher();
class FloodDispatcher extends Dispatcher {
dispatchUIAction(action) {
this.dispatch({source: 'UI_ACTION', action});
}
dispatchServerAction(action) {
this.dispatch({source: 'SERVER_ACTION', action});
}
}
let AppDispatcher = new FloodDispatcher();
export default AppDispatcher;