From 85992e97e263c05f23ce3b270ff2fe312f4ec4f2 Mon Sep 17 00:00:00 2001 From: hafdon <39073287+hafdon@users.noreply.github.com> Date: Fri, 11 Mar 2022 11:56:50 -0700 Subject: [PATCH] docs: move preferences from parameter to state (#1137) --- packages/docs/core-concepts/actions.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/docs/core-concepts/actions.md b/packages/docs/core-concepts/actions.md index a627e22f..7b5a6426 100644 --- a/packages/docs/core-concepts/actions.md +++ b/packages/docs/core-concepts/actions.md @@ -76,10 +76,11 @@ import { useAuthStore } from './auth-store' export const useSettingsStore = defineStore('settings', { state: () => ({ + preferences: null, // ... }), actions: { - async fetchUserPreferences(preferences) { + async fetchUserPreferences() { const auth = useAuthStore() if (auth.isAuthenticated) { this.preferences = await fetchPreferences() -- 2.47.2