MCPcopy Create free account
hub / github.com/linuxfoundation/crowd.dev / createStore

Function createStore

frontend/src/store/index.js:29–40  ·  view source on GitHub ↗
(LogRocket)

Source from the content-addressed store, hash-verified

27 * Creates/Sets the Vuex store
28 */
29export const createStore = (LogRocket) => {
30 const plugins = config.env === 'production'
31 ? [createPlugin(LogRocket)]
32 : [];
33 if (!store) {
34 store = createVuexStore({
35 modules: buildStores(),
36 plugins,
37 });
38 }
39 return store;
40};
41
42/**
43 * Builds an initial state for our application store

Callers 1

main.tsFile · 0.90

Calls 1

buildStoresFunction · 0.85

Tested by

no test coverage detected