Skip to content

Commit

Permalink
wip: disable experimental_use
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Sep 10, 2022
1 parent 05ebf63 commit 10b8b6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/react.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
experimental_use,
// experimental_use,
useCallback,
useDebugValue,
useEffect,
Expand Down Expand Up @@ -128,7 +128,7 @@ export function useSnapshot<T extends object>(
[proxyObject, notifyInSync]
),
() => {
const nextSnapshot = snapshot(proxyObject, experimental_use)
const nextSnapshot = snapshot(proxyObject /*, experimental_use*/)
try {
if (
!inRender &&
Expand All @@ -149,7 +149,7 @@ export function useSnapshot<T extends object>(
}
return nextSnapshot
},
() => snapshot(proxyObject, experimental_use)
() => snapshot(proxyObject /*, experimental_use*/)
)
inRender = false
const currAffected = new WeakMap()
Expand Down

0 comments on commit 10b8b6b

Please sign in to comment.