-
Let's say I have one useQuery, called Before 10s elapses, I mount another component with useQuery After 10s, click away & refocus window, will both of the useQuery start a refetch or one of them only? I guess, both will be fired, and dedup will take place as in #608. Question is who will be picked first, it is not deterministic, isn't it? I am just asking for the sake of curiosity. Thanks all |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
yes that's right.
"the first observer" will be picked, so the one that mounted first I guess. It's really not a good idea to do different Query Function for the same key! |
Beta Was this translation helpful? Give feedback.
yes that's right.
"the first observer" will be picked, so the one that mounted first I guess. It's really not a good idea to do different Query Function for the same key!