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
// snip for production | |
const store = createStore(thunk.withExtraArgument({fetch})); | |
// snip effect | |
import { createAction } from 'redux-actions'; | |
const createEffect = (name, fun) => (...args) => dispatch => { | |
const action = createAction(name); | |
dispatch({ type: `${name}_STARTED` }); |