Skip to content

Instantly share code, notes, and snippets.

@mspoulsen mspoulsen/store.js Secret
Created Nov 28, 2019

Embed
What would you like to do?
const rootState: RootState = {
}
const storeConfig: StoreOptions<RootState> = {
modules: {
foo
},
state: rootState
}
const store: Store<RootState> = new Vuex.Store(storeConfig)
// how can I access store.state.foo without adding foo to RootState ???
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.