-
Hi React Query folks, I have a question regarding refetchOnMount and dependent queries. I have a simple react query hook A, and another react query hook B that depends on the data returned from A (B's However, when I set This is better shown in my sandbox. To see the 2nd query not refetch on mount, you'll need to refresh the page: Is there a way to tell React Query to try the refetchOnMount once B's condition is satisfied? If not, (I suspect there isn't) what's the best way to get B to refetch on mount AND when A returns satisfying data? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
since you are sing But you are right in the sense that |
Beta Was this translation helpful? Give feedback.
yes true. For key changes, there is no
refetchOn...
event that you could set to'always'
, so it will always fetch or read from cache only depending onstaleTime
.