iiuc, you can't use `useLocation().route` in a `then` inside a `useEffect` so what is the recommended way to do routing in this scenario? would `location.href = ...` work? it might be nice to have a `route` function which just figures out what to use by itself, if this is possible