How can I invalidate the data returned by `getIdentity`?
I want to force refetch all data that comes from the
useGetIdentity
hook, how is this possible?5 Replies
Hi @bombillazo. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Hmm, I don't know enough to give you a confident answer yet. However, you can refer to the
useGetIdentity
documentation (https://refine.dev/docs/api-reference/core/hooks/auth/useGetIdentity) for more information.
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------useGetIdentity | refine
useGetIdentity data hook from refine is a modified version of react-query's useQuery for retrieving user data
<@260960777010151436> kapa.ai is still learning and improving, please let us how it did by reacting below
passive-yellow•2y ago
Hey @bombillazo,
You can see the query keys on reac-query devtools. So, you can invalidate the useGetIdentity with its query key.
other-emerald•2y ago
Thanks! I saw my issue was related to the cookie setup.