-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot refetch user data once logged in #27
Comments
Just like you would invalidate any query of react-query, by invalidating its key. Here's the key of the useUser() query: https://github.com/alan2207/react-query-auth/blob/master/src/index.tsx#L37 ( so |
A small repo reproducing the issue would help a lot understanding what's going on |
I tried whatever you sent and it worked for me. Great work, keep going!
…________________________________
From: Mehdi Achour ***@***.***>
Sent: Friday, May 5, 2023 10:35 PM
To: alan2207/react-query-auth ***@***.***>
Cc: Thanvir Ibrahim ***@***.***>; Author ***@***.***>
Subject: Re: [alan2207/react-query-auth] Cannot refetch user data once logged in (Issue #27)
A small repo reproducing the issue would help a lot understanding what's going on
—
Reply to this email directly, view it on GitHub<#27 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A6JT7DDIJ2UPLYWXF66WJQLXEUXO7ANCNFSM6AAAAAAWIXHHZU>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
How do we refetch an user once their state has changed to logged in?
The text was updated successfully, but these errors were encountered: