Skip to content

Instantly share code, notes, and snippets.

@cevr
Last active June 8, 2019 20:38
Show Gist options
  • Save cevr/71d76bf5687810b7926056559d63b15a to your computer and use it in GitHub Desktop.
Save cevr/71d76bf5687810b7926056559d63b15a to your computer and use it in GitHub Desktop.
import { createStore } from 'easy-peasy';
import loadingMiddleware from './loadingMiddleware';
import notifier from './notifier';
import indicators from './indicators';
import session from './session';
import tables from './tables';
import dashboard from './dashboard';
import date from './date';
import calendar from './calendar';
import theme from './theme';
import configuration from './configuration';
const root = {
notifier,
indicators,
session,
tables,
dashboard,
date,
calendar,
theme,
configuration,
};
export default () =>
createStore(root, {
// 👇 inject some middleware using the same redux API
middleware: [loadingMiddleware()],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment