This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const reduxFlow = { | |
1: "A call is made somewhere which dispatches an action", | |
2: "This action is passed into a reducer", | |
3: "That reducer then returns some new state", | |
4: "That state is updated in the store/state tree", | |
5: "Subscribers are then notified about the new state." | |
} | |
// Example store creation | |
const createStore = (reducer, initState = {}, enhancer) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// node myfile.js | |
const pendingTimers = []; | |
const pendingOSTasks = []; | |
const pendingOperations = []; | |
// New timers, tasks, ops are recorded from this file running | |
myFile.runContents(); | |
shouldContinue = () => { |