Skip to content

Commit c01ddc0

Browse files
committed
minor fix in useAffectedDebugValue
1 parent c3d5bbc commit c01ddc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useTrackedState.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const useAffectedDebugValue = (state, affected) => {
3636
useEffect(() => {
3737
pathList.current = affectedToPathList(state, affected)
3838
})
39-
useDebugValue(pathList)
39+
useDebugValue(pathList.current)
4040
}
4141

4242
function useTrackedStateWithStoreAndSubscription(store, contextSub) {

0 commit comments

Comments
 (0)