Kamil
What is the substitution for queryKey in useQuery?
In vanilla @tanstack/react-query, queryKey works as dependencies referrence so the query refetches automatically as it changes. Just like useEffect's dependency array.
It's not present in tRPC flavoured useQuery, looks like it is handled automatically.
So what to do instead? How to attach such dependencies to query?
3 replies