Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import {createStore} from 'redux';
- import {interceptingAction} from 'redux-intercepting-action';
- import {createAction} from 'redux-actions';
- import reducer from './reducers'
- const getInterceptingAction = (state)=> {
- if (state.good) {
- return {
- type: 'YAY'
- }
- }
- }
- const store = createStore(interceptingAction(getInterceptingAction, reducer), initialState)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement