Using <Navigate /> causes "Maximum update depth exceeded" - TanStack