Refetch from another query #1603
Unanswered
hyusetiawan
asked this question in
Q&A
Replies: 2 comments 1 reply
-
const query = useQuery();
query.$refetch(); |
Beta Was this translation helpful? Give feedback.
0 replies
-
ah of course, but will it refetch ALL of the queries or specific queries
that might get affected?
…On Mon, Aug 28, 2023 at 7:08 PM Vicary A. ***@***.***> wrote:
const query = useQuery();
query.$refetch();
—
Reply to this email directly, view it on GitHub
<#1603 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIDQCERXNMFMMKE6YKDMVDXXVFLJANCNFSM6AAAAAA4B7SAKY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
suppose I have a list of
Chat
being fetched through the following query:session.user.chats.map((chat =>
, I am listing the chats that the currently logged in user has.Then I have a button called a new chat in a separate component that creates a new chat, the question is how do I update the list or trigger the
session.user.chats
to refetch?Beta Was this translation helpful? Give feedback.
All reactions