Parallel queries from two components #361
|
Is it a bug or a feature? In another component The result: both queries return loading status, do retries and eventually error. I try to use here the cache from one component in another |
Answered by
tannerlinsley
Apr 16, 2020
Replies: 5 comments 1 reply
|
This is intentional. My suggestion:
|
0 replies
|
I understand the recommended approach about query extraction. Thanks. |
0 replies
|
Right. If you need to subscribe to the query, you'll have to use |
0 replies
Answer selected by
lishine
|
Github new interface :) |
0 replies
|
May I suggest some contribution to documentation |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right. If you need to subscribe to the query, you'll have to use
useQuery. I recommend a custom hook. I do this almost all the time.