Created
August 23, 2018 14:40
-
-
Save matthew-gerstman/fc3befd0a3e2230d0915bdeb44f00f61 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
// data/wizards/store.ts | |
import { getStore, registerReducer } from "../../redux-utils/store"; | |
import { WIZARD_NAMESPACE_KEY } from "../../redux-utils/types"; | |
import { once } from "lodash"; | |
import wizardReducer from "./reducer"; | |
export const getStoreForWizardApp = once(() => { | |
registerReducer({ [WIZARD_NAMESPACE_KEY]: wizardReducer }); | |
return getStore(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment