From 8b7f7bf7139f13fae980095004b071554352759c Mon Sep 17 00:00:00 2001 From: daishi Date: Mon, 14 Oct 2024 12:51:32 +0900 Subject: [PATCH] fix(vanilla): createSnapshotDefault --- src/vanilla.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vanilla.ts b/src/vanilla.ts index 3a99860d..66a796dc 100644 --- a/src/vanilla.ts +++ b/src/vanilla.ts @@ -93,7 +93,7 @@ const createSnapshotDefault = ( const [target, ensureVersion] = proxyStateMap.get( value as object, ) as ProxyState - desc.value = createSnapshot(target, ensureVersion()) as Snapshot + desc.value = createSnapshotDefault(target, ensureVersion()) as Snapshot } Object.defineProperty(snap, key, desc) })