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
Nesting is weird in Wouter. I might have been using ReactRouter too long, but there's a couple of choices that seem weird.
can't go up:
no equivalent of navigate('.."), navigate('../../otherPage")
no way to access parent routes
While rare, page might need to behave differently based on its parent.
To the very least, it should be able to get the full path.
absolute paths are not the default!
I kinda expected linux style paths, where paths are absolute unless stated otherwise,
and links like ./inner being clearly relative.
~/other-path seems like a weird convention, especially with no other way to climb out of a route.
It means most(?) links would behave differently under a nest route, and would need the extra ~/
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Nesting is weird in Wouter. I might have been using ReactRouter too long, but there's a couple of choices that seem weird.
can't go up:
no equivalent of
navigate('..")
,navigate('../../otherPage")
no way to access parent routes
While rare, page might need to behave differently based on its parent.
To the very least, it should be able to get the full path.
absolute paths are not the default!
I kinda expected linux style paths, where paths are absolute unless stated otherwise,
and links like
./inner
being clearly relative.~/other-path
seems like a weird convention, especially with no other way to climb out of a route.It means most(?) links would behave differently under a
nest
route, and would need the extra~/
Beta Was this translation helpful? Give feedback.
All reactions