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
I'm using dynamic routing and have a scenario where I'd like to use a particular react component depending on a route param. So for example, if I've got a route like below ...
/:slug
I've like to be able to look at that slug and if it's A then use component A, or if it's B use component B.
Right now, getIndexRoute receives the location param, which does have the current path ... as a string, though. There exists the params and routeParams props that get passed into route components. Could getIndexRoute receive these too, so that we can make more precise logic around the route params?
The text was updated successfully, but these errors were encountered:
I'm using dynamic routing and have a scenario where I'd like to use a particular react component depending on a route param. So for example, if I've got a route like below ...
I've like to be able to look at that slug and if it's
A
then use component A, or if it'sB
use component B.Right now,
getIndexRoute
receives thelocation
param, which does have the current path ... as a string, though. There exists theparams
androuteParams
props that get passed into route components. CouldgetIndexRoute
receive these too, so that we can make more precise logic around the route params?The text was updated successfully, but these errors were encountered: