Best practice for error handling - TanStack