Do not use useStorage for root state

This commit is contained in:
2022-02-11 22:03:26 +00:00
parent 45389e01be
commit f6cb6d4163
3 changed files with 30 additions and 20 deletions

View File

@ -1,4 +1,3 @@
import { useStorage } from "@vueuse/core";
import { defineStore } from "pinia";
import { useAPI } from "./api";
import { useAccountStore } from "./budget-account";
@ -9,7 +8,7 @@ interface State {
}
export const useBudgetsStore = defineStore('budget', {
state: () => useStorage<State>('budget', {
state: () => ({
CurrentBudgetID: null,
}),
getters: {