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
This is supported. With defaults enabled you could do something like this:
constroutes=[{path: '/products/:productId',breadcrumb: ({ match })=><span>{match.params.productId}</span>},{path: '/products/:productId/categories/:categoryId',breadcrumb: ({ match })=><span>{match.params.categoryId}</span>},];withBreadcrumbs(routes)(MyComponent)
For the above:
URL: /products/1/categories/2
Breadcrumbs: Home / Products / 1 / Categories / 2
This will work with default breadcrumbs option disabled too. You'd just have to define route breadcrumbs for 'products' and 'categories'.
How to handle multiple params?
e.g. /products/:productId/categories/:categoryId
The text was updated successfully, but these errors were encountered: