whats the best way to handle error state ? - TanStack