From d710cb8ee4c947322f56668f54eea00be7ebbfd9 Mon Sep 17 00:00:00 2001 From: Alex Liu Date: Mon, 15 May 2023 21:39:28 +0800 Subject: [PATCH] docs: update `$state` JSDoc to reflect internal patching (#2199) Co-authored-by: Eduardo San Martin Morote --- packages/pinia/src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pinia/src/types.ts b/packages/pinia/src/types.ts index 4907fc6c..568695d8 100644 --- a/packages/pinia/src/types.ts +++ b/packages/pinia/src/types.ts @@ -321,7 +321,7 @@ export interface _StoreWithState< A /* extends ActionsTree */ > extends StoreProperties { /** - * State of the Store. Setting it will replace the whole state. + * State of the Store. Setting it will internally call `$patch()` to update the state. */ $state: UnwrapRef & PiniaCustomStateProperties -- 2.47.3