From: Alex Liu Date: Tue, 16 May 2023 16:26:19 +0000 (+0800) Subject: refactor: reduce the unnecessary use of `markRaw` (#2204) X-Git-Tag: @pinia/nuxt@0.4.11~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b041c15e6d57574fde278bc6a212166f498bf2d4;p=thirdparty%2Fvuejs%2Fpinia.git refactor: reduce the unnecessary use of `markRaw` (#2204) --- diff --git a/packages/pinia/src/store.ts b/packages/pinia/src/store.ts index f5dd8a61..7803dfdc 100644 --- a/packages/pinia/src/store.ts +++ b/packages/pinia/src/store.ts @@ -255,8 +255,8 @@ function createSetupStore< // internal state let isListening: boolean // set to true at the end let isSyncListening: boolean // set to true at the end - let subscriptions: SubscriptionCallback[] = markRaw([]) - let actionSubscriptions: StoreOnActionListener[] = markRaw([]) + let subscriptions: SubscriptionCallback[] = [] + let actionSubscriptions: StoreOnActionListener[] = [] let debuggerEvents: DebuggerEvent[] | DebuggerEvent const initialState = pinia.state.value[$id] as UnwrapRef | undefined