From 868ee669286ea0670067bef676afd99542e9e855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Ollivier?= Date: Wed, 8 Jan 2025 11:31:04 +0100 Subject: [PATCH] fix(store): use store id as first argument for pinia option store --- src/templates/stores.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/templates/stores.ts b/src/templates/stores.ts index 6c8c19b..9f5d673 100644 --- a/src/templates/stores.ts +++ b/src/templates/stores.ts @@ -1,8 +1,7 @@ import { normalizeName } from '../utils' const piniaOptionsContent = (name: string): string => { - return `export const use${normalizeName(name)}Store = defineStore({ - id: '${normalizeName(name)}Store', + return `export const use${normalizeName(name)}Store = defineStore('${normalizeName(name)}', { state: () => ({ }), actions: {} })