TanStackT
TanStack12mo ago
5 replies
colossal-harlequin

staticData on a lazy route

Hi,
I want to make a breadcrumb component using useMatches and staticData on my routes. Everything is ok until I want to use lazy route with createLazyFileRoute which doesn't allow staticData to be passed.

I would like to know if there's an alternative to using staticData to achieve what I want to do, or if I need to stay on non lazy routes.
Was this page helpful?