Skip to content

Instantly share code, notes, and snippets.

@ispoljari
Created September 29, 2021 08:18
Show Gist options
  • Select an option

  • Save ispoljari/ca2e78593abbcb55f726a9002f7f61c7 to your computer and use it in GitHub Desktop.

Select an option

Save ispoljari/ca2e78593abbcb55f726a9002f7f61c7 to your computer and use it in GitHub Desktop.
Store with module instantiation
const storeOptions = {
modules: {
auth: AuthModule,
},
};
const createStore = (storeOptions: any = {}): Store<{ auth: IState }> => new Vuex.Store({ ...storeOptions });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment