How to access what query key value changed that triggered the useQuery run inside useQuery queryFn?
How to access what query key value changed that triggered the useQuery run inside useQuery queryFn. In my case changing search filters will trigger the queryFn among other values such as the search input. However I want to reset pagination to page 1 when a filter is selected, where a filter is one of various query keys, but not all query keys for the given useQuery call.
0 Replies