]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
refactor: use _run feat/globals-2.1
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 18 Apr 2023 13:32:30 +0000 (15:32 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 18 Apr 2023 13:32:30 +0000 (15:32 +0200)
packages/pinia/src/store.ts

index 0c77d2e59c15ef54696c6e3de5c46ba3d6937762..677927a55307e813c9b188c59d154296a7d7c100 100644 (file)
@@ -473,7 +473,7 @@ function createSetupStore<
   pinia._s.set($id, store)
 
   // TODO: idea create skipSerialize that marks properties as non serializable and they are skipped
-  const setupStore = pinia._e.run(() => {
+  const setupStore = pinia._run(() => {
     scope = effectScope()
     return scope.run(() => setup())
   })!