How to use the vuex-smart-module.createStore function in vuex-smart-module

To help you get started, we’ve selected a few vuex-smart-module examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wikimedia / mediawiki-extensions-Wikibase / client / data-bridge / src / store / index.ts View on Github external
export function createStore( services: ServiceContainer ): Store {

	const store = smartCreateStore( rootModule, {
		strict: process.env.NODE_ENV !== 'production',
		plugins: [ mutationsTrackerPlugin( services.get( 'tracker' ) ) ],
	} );

	store.$services = services;
	return store;
}
github wikimedia / mediawiki-extensions-Wikibase / client / data-bridge / stories / useStore.js View on Github external
return () => {
		Vue.use( Vuex );
		rootModule.options.state = class {
			constructor() {
				Object.assign( this, state );
			}
		};
		const store = smartCreateStore( rootModule );
		return {
			store,
			template: '',
		};
	};
}

vuex-smart-module

Type safe Vuex module with powerful module features

MIT
Latest version published 2 years ago

Package Health Score

51 / 100
Full package analysis

Popular vuex-smart-module functions