Skip to content

Commit efa8623

Browse files
Update packages/react-query/src/useQueryState.ts
Co-authored-by: refacto-visz[bot] <230139763+refacto-visz[bot]@users.noreply.github.com>
1 parent 05e18d3 commit efa8623

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-query/src/useQueryState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function useQueryState<TResult = QueryState>(
4343

4444
React.useEffect(() => {
4545
optionsRef.current = options
46-
})
46+
}, [options])
4747

4848
return React.useSyncExternalStore(
4949
React.useCallback(

0 commit comments

Comments
 (0)