Last active
May 21, 2019 11:00
-
-
Save js2me/18bb11b90fab68a7eda87b3d4e86afd7 to your computer and use it in GitHub Desktop.
This file contains 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
// store.js | |
import { StonexStore } from 'stonex' | |
import modules from './modules' | |
import Logger from './modifiers/Logger' | |
import AppStateWorker from './common/AppStateWorker' | |
const storeConfiguration = { | |
modifiers: [ // middlewares | |
Logger | |
], | |
stateWorker: AppStateWorker | |
} | |
const store = new StonexStore(modules, storeConfiguration) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment