Skip to content

Commit d1858e8

Browse files
committed
feat: deprecate old defineStore
1 parent 64fbd46 commit d1858e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/pinia/src/store.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,8 @@ export function defineStore<
841841
* Creates a `useStore` function that retrieves the store instance
842842
*
843843
* @param options - options to define the store
844+
*
845+
* @deprecated use `defineStore(id, options)` instead
844846
*/
845847
export function defineStore<
846848
Id extends string,

0 commit comments

Comments
 (0)