From 5d600ef9daec5f61f9d60b8591949f5aac8f91ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Thu, 12 Oct 2023 23:01:43 -0400 Subject: [PATCH] refactor(client-side): add autosave store actions --- stores/autosaveStore.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stores/autosaveStore.ts b/stores/autosaveStore.ts index ffab162..25b538a 100644 --- a/stores/autosaveStore.ts +++ b/stores/autosaveStore.ts @@ -2,12 +2,17 @@ import { defineStore } from "pinia"; export interface autoSavePayload { draftId?: number; + fetchId: number; } export const useAutoSaveStore = defineStore("autosave", { state() { return { draftId: undefined, + fetchId: 1, } as autoSavePayload; }, + actions: { + async doSomething(did: number) {}, + }, });