From b3febecb4784adfc22367d949906fcbb7b367eba Mon Sep 17 00:00:00 2001 From: daishi Date: Mon, 13 Nov 2023 10:19:20 +0900 Subject: [PATCH] ah we need it --- src/vanilla.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vanilla.ts b/src/vanilla.ts index 625e10e9..bff2b11f 100644 --- a/src/vanilla.ts +++ b/src/vanilla.ts @@ -168,7 +168,9 @@ const buildProxyFunction = ( readonly [ProxyState, RemoveListener?] >() const addPropListener = (prop: string | symbol, propValue: unknown) => { - const propProxyState = proxyStateMap.get(propValue as object) + const propProxyState = + !refSet.has(propValue as object) && + proxyStateMap.get(propValue as object) if (propProxyState) { if ( import.meta.env?.MODE !== 'production' &&