TanStackT
TanStack3y ago
2 replies
dead-brown

how can i re-run useQuery if queryKey changed with help of props without watch and refetch?

step 1 - change 1 to 2 in input

https://codesandbox.io/p/sandbox/strange-estrela-wx59mw

actual - it is not fetch again after change number in input

expected - it should fetch again whenever queryKey or change input
Was this page helpful?