]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
refactor: reduce the unnecessary use of `markRaw` (#2204)
authorAlex Liu <dsa1314@gmail.com>
Tue, 16 May 2023 16:26:19 +0000 (00:26 +0800)
committerGitHub <noreply@github.com>
Tue, 16 May 2023 16:26:19 +0000 (18:26 +0200)
packages/pinia/src/store.ts

index f5dd8a61c5f0a95d90a4511ae8d458f0b45801f9..7803dfdcd24871082a1974d3cd5e4e91ffdb9cc1 100644 (file)
@@ -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<S>[] = markRaw([])
-  let actionSubscriptions: StoreOnActionListener<Id, S, G, A>[] = markRaw([])
+  let subscriptions: SubscriptionCallback<S>[] = []
+  let actionSubscriptions: StoreOnActionListener<Id, S, G, A>[] = []
   let debuggerEvents: DebuggerEvent[] | DebuggerEvent
   const initialState = pinia.state.value[$id] as UnwrapRef<S> | undefined