diff --git a/src/vanilla.ts b/src/vanilla.ts index 66a796dc..40dbcd00 100644 --- a/src/vanilla.ts +++ b/src/vanilla.ts @@ -90,10 +90,8 @@ const createSnapshotDefault = ( if (refSet.has(value as object)) { markToTrack(value as object, false) // mark not to track } else if (proxyStateMap.has(value as object)) { - const [target, ensureVersion] = proxyStateMap.get( - value as object, - ) as ProxyState - desc.value = createSnapshotDefault(target, ensureVersion()) as Snapshot + const [target] = proxyStateMap.get(value as object) as ProxyState + desc.value = createSnapshotDefault(target, version) as Snapshot } Object.defineProperty(snap, key, desc) })