From: Eduardo San Martin Morote Date: Tue, 18 Apr 2023 13:32:30 +0000 (+0200) Subject: refactor: use _run X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Ffeat%2Fglobals-2.1;p=thirdparty%2Fvuejs%2Fpinia.git refactor: use _run --- 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()) })!