log-out/sign-out clarification
What is the recommended way to flush all of the react query data?
3 Replies
like-gold•12mo ago
queryClient.clear()
stormy-goldOP•12mo ago
I saw approaches like the below for logout related code. Is this just a way to clear data explicitly? So if i have data that authenticated and public users can see, i don't need to clear those and I could use this approach to clear sentive data?
like-gold•12mo ago
yes
clear just calls
removeQueries()
with no filter, so it removes everything