Last active
June 8, 2019 20:38
-
-
Save cevr/71d76bf5687810b7926056559d63b15a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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