set route state from loader funtion - TanStack