From 68fe70c0e44704052a726dcf3a1fad271760bcba Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 18 Apr 2023 15:32:30 +0200 Subject: [PATCH] refactor: use _run --- packages/pinia/src/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pinia/src/store.ts b/packages/pinia/src/store.ts index 0c77d2e5..677927a5 100644 --- a/packages/pinia/src/store.ts +++ b/packages/pinia/src/store.ts @@ -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()) })! -- 2.47.2