Controlling route and component rendering - TanStack