svrcekmichal / redux-axios-middleware

Redux middleware for fetching data with axios HTTP client
MIT License
922 stars 96 forks source link

MultiClient Middleware #113

Closed rasulrukhilloev closed 4 years ago

rasulrukhilloev commented 4 years ago

Hi, this is not actually an issue i'm guessing. Can someone clarify this part of multiClientMiddleware import { multiClientMiddleware } from 'redux-axios-middleware'; createStore( ... multiClientMiddleware( clients, // described below options // optional, this will be used for all middleware if not overriden by upper options layer ) ) In above code, client is list of API clients or i have to use like this: const store = createStore(persistedReducer, multiClientMiddleware((newsClient, stockClient)))

rasulrukhilloev commented 4 years ago

sorry, forgot to put applyMiddleware before multiClientMiddleware