1.0.5 • Published 8 years ago

mantra-redux v1.0.5

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

Mantra Redux Middleware

Installation

npm install --save mantra-redux mantra-plus

Basic Usage

import redux from 'mantra-redux';
import thunk from 'redux-thunk';
import createLogger from 'redux-logger';

const logger = createLogger();
const middlewares = [
  thunk,
  logger,
  Client.middleware(),
];

// create a Mantra app
const app = createApp(context);

// load middlewares before loading module
app.loadMiddlewares([
  redux({
    reducers: {
      apollo: Client.reducer(),
    },
    middlewares,
  }),
]);

// load all modules
app.loadModule(coreModule);

// initialize app
app.init();
1.0.5

8 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago