Module: core/applyMiddleware
Functions
applyMiddleware
▸ applyMiddleware(...args
): typeof __class
Description
Apply middlewares for Redux.
Example
import logger from 'redux-logger';
@injectable()
class Foo {}
const app = createApp({
modules: [applyMiddleware(logger)],
main: Foo,
render: () => {},
});
Parameters
Name | Type | Description |
---|---|---|
...args | Middleware <{}, any , Dispatch <AnyAction >>[] | middlewares for Redux |
Returns
typeof __class