-
Hello,
I'm using this in a react native project and am having some issues with In the first screenshot of my code you can see I'm using one key-- Single key workingSingle key in Console log statement in react-query package: Logged value: Multiple keys not workingMultiple keys in
I'm not sure if maybe I'm using it incorrectly but I don't see any examples for multiple keys and the answer I found in the Discussions for someone who asked the same question wasn't very insightful: Thank you and hope you/team is keeping well. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
refetchQueries doesn’t work like that. If you want multiple queries to be refetched that don’t start with the same key, you need to call refetchQueries multiple times. |
Beta Was this translation helpful? Give feedback.
refetchQueries doesn’t work like that. If you want multiple queries to be refetched that don’t start with the same key, you need to call refetchQueries multiple times.