Once the VueJS application is initialized, I have certain data loaded on the page that will remain static until the HTML page is reloaded. This data is in the form of a nonReactiveObjectWithSomeNestedData example:
const nonReactiveObjectWithSomeNestedData = {
a: 'a',
b: {
bb: 'bb',
cc: { ccc: 'ccc' },
dd: ['dd1', 'dd2']
}
}
This data is used in multiple Vue components and it would be convenient to store it in a Vuex namespaced module and utilize Vuex getters to wrap the same functionality for different components. Is there a way to store this data outside of the Vuex state (without reactivity) but still be able to access it from a Vuex module's getter?
PS. Currently, I am storing non-reactive data inside a Vue instance method. However, I now require more global access to the data from two independent root components.