From: Eduardo San Martin Morote Date: Tue, 8 Nov 2022 20:35:43 +0000 (+0100) Subject: docs: red warn X-Git-Tag: @pinia/nuxt@0.4.4~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a2f31b31f2734edcb18c94a759e9f52a0c789de;p=thirdparty%2Fvuejs%2Fpinia.git docs: red warn --- diff --git a/packages/pinia/src/types.ts b/packages/pinia/src/types.ts index affb5b18..52d2e90c 100644 --- a/packages/pinia/src/types.ts +++ b/packages/pinia/src/types.ts @@ -79,6 +79,13 @@ export interface _SubscriptionCallbackMutationBase { * `id` of the store doing the mutation. */ storeId: string + + /** + * 🔴 DEV ONLY, DO NOT use for production code. Different mutation calls. Comes from + * https://vuejs.org/guide/extras/reactivity-in-depth.html#reactivity-debugging and allows to track mutations in + * devtools and plugins **during development only**. + */ + events?: DebuggerEvent[] | DebuggerEvent } /** @@ -90,9 +97,6 @@ export interface SubscriptionCallbackMutationDirect extends _SubscriptionCallbackMutationBase { type: MutationType.direct - /** - * DEV ONLY. Different mutation calls. - */ events: DebuggerEvent } @@ -104,9 +108,6 @@ export interface SubscriptionCallbackMutationPatchObject extends _SubscriptionCallbackMutationBase { type: MutationType.patchObject - /** - * DEV ONLY. Array for patch calls. - */ events: DebuggerEvent[] /** @@ -123,9 +124,6 @@ export interface SubscriptionCallbackMutationPatchFunction extends _SubscriptionCallbackMutationBase { type: MutationType.patchFunction - /** - * DEV ONLY. Array of all the mutations done inside of the callback. - */ events: DebuggerEvent[] /**