You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though I suspect every real app out there will have a root route (shared layout, global nav, etc), when you're just getting started this is a hurdle that isn't obvious and it would be nice to feel productive the first time you use this router.
The text was updated successfully, but these errors were encountered:
Since the Router API is deprecated and going away, I don't believe this is an issue any more. Routes are now simply a variable assignment, which can't be assigned to two things at once.
Currently you must require a root route, the following doesn't do anything:
You have to do this:
Maybe we can detect that
routes.length > 1
and then provide a default route and handler like:Even though I suspect every real app out there will have a root route (shared layout, global nav, etc), when you're just getting started this is a hurdle that isn't obvious and it would be nice to feel productive the first time you use this router.
The text was updated successfully, but these errors were encountered: