How to handle error in a route loader - TanStack