isError not updated when NextJS API fails - TanStack