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()