Skip to content

Commit

Permalink
refactor: reduce the unnecessary use of markRaw (#2204)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini-ghost authored May 16, 2023
1 parent d710cb8 commit b041c15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/pinia/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b041c15

Please sign in to comment.