Open PManager1 opened 6 years ago
The applyMiddleware function wants an array of middlewares, like so:
applyMiddleware ([navigationDebouncer(600), thunk])
https://redux.js.org/api-reference/applymiddleware
This can be closed since it has no relevance to this library @parakhod
import navigationDebouncer from 'react-navigation-redux-debouncer';
import { createStore, compose, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import reducers from '../reducers';
const store = createStore( reducers, {}, compose ( applyMiddleware (navigationDebouncer( 600 )) (thunk) ) );
export default store;