You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to initialize redux with this middleware, but i can't get it working for now.
I'm new to redux and started with a project based on redux 0.12
A short snippet of the application init steps:
...
import { createRedux, createDispatcher, composeStores } from 'redux';
import thunkMiddleware from 'redux/lib/middleware/thunk';
import promiseMiddleware from 'redux-promise';
import * as stores from '../stores';
const dispatcher = createDispatcher(
composeStores(stores),
[promiseMiddleware, thunkMiddleware]
);
const redux = createRedux(dispatcher);
A i missing something ?
Thx for your help.
The text was updated successfully, but these errors were encountered:
import{createStore,combineReducers,applyMiddleware}from'redux';importthunkfrom'redux-thunk';importpromisefrom'redux-promise';import*asreducersfrom'../reducers';constinitialState={};// or whatever it should beconstreducer=combineReducers(reducers);constfinalCreateStore=applyMiddleware(thunk,promise)(createStore);conststore=finalCreateStore(reducer,initialState);
Hi,
I'm trying to initialize redux with this middleware, but i can't get it working for now.
I'm new to redux and started with a project based on redux 0.12
A short snippet of the application init steps:
A i missing something ?
Thx for your help.
The text was updated successfully, but these errors were encountered: