Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Dec 20, 2024
1 parent e34ffcf commit 8aa1d88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vanilla/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<AnyAtom>()
let savedGetAtomState: StoreArgs[0]
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 8aa1d88

Please sign in to comment.