-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breadcrumbs #168
Comments
Given RRR does not have a "nesting" concept, not sure we will support it natively. However it is fairly easy to implement thanks to the freedom of the route configuration object. In there you can provide a key called "parentRoute" for instance, setting it with the name of the parent. For instance, in our product, we have created a similar, more generic, hook called |
Looks like a good idea. I didn't realize the configuration object was free-form 👍 |
There is an annoyance; The route state is declared as OTOH, this seems like it was intended to be an internal API so I am not sure if it is safe to assume |
react-router
has a mechanism to allow creating breadcrumbs from the component tree. This is not something that is currently possible with RRR as there is no child route concept as of now.The other potential solution is exposing an abstracted array of history entries so that we can use it to decide on the currently displayed breadcrumb. This is not ideal but is possible with some tinkering and a few limitations (like it is not possible to have same route twice in the breadcrumbs - which is not required in practice anyways).
Are there any plans on implementing such a mechanism?
The text was updated successfully, but these errors were encountered: