From 10b8b6b6d3b1eb50a2ea14d1be664b2352b91ffd Mon Sep 17 00:00:00 2001 From: daishi Date: Sat, 10 Sep 2022 12:51:34 +0900 Subject: [PATCH] wip: disable experimental_use --- src/react.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/react.ts b/src/react.ts index 297426dc..ba4132f5 100644 --- a/src/react.ts +++ b/src/react.ts @@ -1,7 +1,7 @@ import { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - experimental_use, + // experimental_use, useCallback, useDebugValue, useEffect, @@ -128,7 +128,7 @@ export function useSnapshot( [proxyObject, notifyInSync] ), () => { - const nextSnapshot = snapshot(proxyObject, experimental_use) + const nextSnapshot = snapshot(proxyObject /*, experimental_use*/) try { if ( !inRender && @@ -149,7 +149,7 @@ export function useSnapshot( } return nextSnapshot }, - () => snapshot(proxyObject, experimental_use) + () => snapshot(proxyObject /*, experimental_use*/) ) inRender = false const currAffected = new WeakMap()