Only throw error if there is no data in the cache - TanStack