queryClient.invalidateQueries failed. help neeeded
this mutation would run successfully, I can see the new data from the log. but the cache 'list' is not being invalidated. It just won't re fetch. queryClient.invalidateQueries() which supposes to invalidate all cache did not work neither. I spent a day on this and it is very frustrating. please help me out here . thank you.
1 Reply
exotic-emeraldOP•4y ago
this is the fetchProject List fn.
the solution is
since the cache is not used by any component, invalidate won't refetch immediately