Say I have a template called “editOne” and the route is /thing/:slug (based on the name). When the name changes on this totally amazing reactive page without a save button then my current url becomes invalid - the router fires and I get a 404 until I can refresh with the new slug.
I would probably keep lastslug and if router cant find page it will check if it matches lastslug, if yes then router.go to new slug of the document which matched lastslug?
I would probably do the switch in route itself, cause now you in async change the slug and async call router.go.
So when router is switching you dont know if new slug is set.
And also when slug is set, it invalidate route, try to switch to 404 and than u call router.go.
Just async hell.
Thats why I would wait in route for collection update and switch clean way there.