Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import {createStore} from 'redux';
  2. import {interceptingAction} from 'redux-intercepting-action';
  3. import {createAction} from 'redux-actions';
  4. import reducer from './reducers'
  5.  
  6. const getInterceptingAction = (state)=> {
  7. if (state.good) {
  8. return {
  9. type: 'YAY'
  10. }
  11. }
  12. }
  13.  
  14. const store = createStore(interceptingAction(getInterceptingAction, reducer), initialState)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement