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 Remix you can escape route segments by surrounding it with [], so things like [slug.json] => slug.json end up being the segment, however you can't do that today in React Router.
With that being said you can't have a literal * as a route as it would behave like a splat/catch-all route. You can workaround that by checking params['*'] === '*', but that's less than ideal.
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
-
in Remix you can escape route segments by surrounding it with
[]
, so things like[slug.json]
=>slug.json
end up being the segment, however you can't do that today in React Router.With that being said you can't have a literal
*
as a route as it would behave like a splat/catch-all route. You can workaround that by checkingparams['*'] === '*'
, but that's less than ideal.Beta Was this translation helpful? Give feedback.
All reactions