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
Clicking on one of these items gets the user to a details page for that item (something like items/$itemId and this page also shows a new breadcrumb segment, which is added in the router context during the beforeLoad of the route.tsx file for that page, by picking up the $itemId param.
Now, that results in the breadcrumb entry being a random string, but that's all that's available during the time the beforeLoad runs.
What I would like to do, is after the data or the specified item load, to update the breadcrumb entry, which up until now showed the random-string id, to some more human readable information, like the name of the item.
What would be the best way to achieve this functionality?
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have found myself in the following scenario:
items/$itemId
and this page also shows a new breadcrumb segment, which is added in the router context during thebeforeLoad
of theroute.tsx
file for that page, by picking up the$itemId
param.beforeLoad
runs.What I would like to do, is after the data or the specified item load, to update the breadcrumb entry, which up until now showed the random-string id, to some more human readable information, like the name of the item.
What would be the best way to achieve this functionality?
Beta Was this translation helpful? Give feedback.
All reactions