I want to initialize the store with some data that is fetched from API (I'm using axios) How can I do this on app startup, only once?
I have a store.js file that exports my store and a main.js file that does this:
import Vue from "nativescript-vue";
import store from "./store";
new Vue({
store,
render: (h) => h("frame", [h(App)]),
}).$start();