svrcekmichal/redux-axios-middleware

MultiClient Middleware

rasulrukhilloev opened this issue · 1 comments

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)))

sorry, forgot to put applyMiddleware before multiClientMiddleware