You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First : I'm sorry I can't give you all a reproduction environment. My question is very simple :
I have a list of users which queries users with pagination, so the key is like that : () => ["users", route.params.page] ;
I have a view for a single user, and inside, I have a mutation for editing or deleting the user ;
After editing or deleting the user, I want to invalidate queryCache in order to make pinia colada refetch the list, so when I go back to the list, it will refetch users, so after mutations are done, I do : queryCache.invalidateQueries({ key: ["users"] })
Expected behavior
When I go back to the list, I expect my list to refetch because the cache is no longer valid
Real behavior
The list still shows me the old data and does not refetch what so ever
Is there something I'm missing ?
The text was updated successfully, but these errors were encountered:
First : I'm sorry I can't give you all a reproduction environment. My question is very simple :
() => ["users", route.params.page]
;queryCache.invalidateQueries({ key: ["users"] })
Expected behavior
When I go back to the list, I expect my list to refetch because the cache is no longer valid
Real behavior
The list still shows me the old data and does not refetch what so ever
Is there something I'm missing ?
The text was updated successfully, but these errors were encountered: