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
It's a route param - not query string. If the parameter doesn't exist it means the route is different.
Let's say you have this configuration: /group/:groupId/post/:postId
If groupId is undefined the route will be /group/post/<postId> and if postId is undefined the route will be /group/<groupId>/post
These two examples should match different routes than /group/:groupId/post/:postId
A common convention is that path/route params are manditory while query params are optional.
Let's say you have this configuration:
/group/:groupId/post/:postId
If groupId is undefined the route will be
/group/post/<postId>
and if postId is undefined the route will be/group/<groupId>/post
These two examples should match different routes than
/group/:groupId/post/:postId
A common convention is that path/route params are manditory while query params are optional.
Originally posted by @tzachov in remix-run/react-router#8498 (comment)
The text was updated successfully, but these errors were encountered: