Query keeping cached data when api returns error on invalidate - TanStack