From 8aa1d880fdea126e2ab614c3a4692d7836dac7bb Mon Sep 17 00:00:00 2001 From: daishi Date: Fri, 20 Dec 2024 14:59:20 +0900 Subject: [PATCH] rename --- src/vanilla/store.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vanilla/store.ts b/src/vanilla/store.ts index 70d39a90df..395ff345c2 100644 --- a/src/vanilla/store.ts +++ b/src/vanilla/store.ts @@ -711,7 +711,7 @@ const buildStore = ( return store } -const deriveDevStore = (store: Store): Store & DevStoreRev4 => { +const deriveDevStoreRev4 = (store: Store): Store & DevStoreRev4 => { const proxyAtomStateMap = new WeakMap() const debugMountedAtoms = new Set() let savedGetAtomState: StoreArgs[0] @@ -811,7 +811,7 @@ export const createStore = (): PrdOrDevStore => { (atom, ...params) => atom.onMount?.(...params), ) if (import.meta.env?.MODE !== 'production') { - return deriveDevStore(store) + return deriveDevStoreRev4(store) } return store }