Closed lifeiscontent closed 1 year ago
useRouteLoaderData uses the route id to lookup the loader data, but from what I can tell this breaks the useRouteLoaderData hook
const data = useRouteLoaderData<typeof layoutLoader>("routes/_app+/_layout");
Did you figure it out?
@kiliman yeah thanks for checking in! It was a typo on my part, once I saw what useMatches returned it all made sense 😅
useMatches
useRouteLoaderData uses the route id to lookup the loader data, but from what I can tell this breaks the useRouteLoaderData hook