Skip to content

Commit

Permalink
add watch to useEffect dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 committed Jun 25, 2024
1 parent 30ed018 commit 4a8c646
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const useScaffoldEventHistory = <

query.fetchNextPage();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [blockNumber]);
}, [blockNumber, watch]);

return {
data: query.data?.pages,
Expand Down

0 comments on commit 4a8c646

Please sign in to comment.