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
In tildeio/router.js#102, @mgenev expressed his frustration for dealing with a complex routing situation that he believed optional dynamic segments would resolve. @machtysaid he would support this were a PR made here in route-recognizer, so I'm creating this issue to document it as a todo.
Prior art:
Backbone
Optional segments are wrapped in parentheses. i.e. docs/:section(/:subsection)
React Router
A question mark marks the previous segment as optional. i.e. docs/:section?
However, React is apparently switching over to parentheses because of how annoying it is to deal with the question marks (ref: remix-run/react-router#960 )
The text was updated successfully, but these errors were encountered:
In tildeio/router.js#102, @mgenev expressed his frustration for dealing with a complex routing situation that he believed optional dynamic segments would resolve. @machty said he would support this were a PR made here in route-recognizer, so I'm creating this issue to document it as a todo.
Prior art:
Backbone
Optional segments are wrapped in parentheses. i.e.
docs/:section(/:subsection)
React Router
A question mark marks the previous segment as optional. i.e.
docs/:section?
However, React is apparently switching over to parentheses because of how annoying it is to deal with the question marks (ref: remix-run/react-router#960 )
The text was updated successfully, but these errors were encountered: