Skip to content

useLoaderData in export handle #2672

Closed Answered by sergiodxa
nabilsarder asked this question in Q&A
Discussion options

You must be logged in to vote

How are you calling breadcrumb? Also where you call breadcrumb will affect what loader data do you get.

If you define that function in the route routes/parent/child.tsx and you call it in routes/parent.tsx the loader data should be the one on routes/parent.tsx since that's where the "component" breadcrumb is rendered.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@nabilsarder
Comment options

@sergiodxa
Comment options

@piotrkulpinski
Comment options

@piotrkulpinski
Comment options

@nartc
Comment options

Answer selected by machour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants