Rerun search with new parameters #7434
-
Hello! I have a page that displays various products. The various search parameters are maintained in Redux. I am using useQuery to get list of products during initial load. I tried invalidateCache but that reruns the useQuery with the original parameters. Any advise please? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
make the parameters part of the QueryKey |
Beta Was this translation helpful? Give feedback.
make the parameters part of the QueryKey