#Using OutletContext inside MetaFunction
1 messages · Page 1 of 1 (latest)
I don't think so - any reason you can't expose the data through your loader which Meta would have access to?
That route has no loader, I'd have to refetch the data for not a whole lot of benefit on this route. Sort of defeats the purpose of using OutletContext at that point. Can I access the OutletContext in the loader? Actually, I think that parent loader may be an approach.
Yeah that works for me. Just had to grab the parents loader data.
yeah - meta gets all the loader data from parents too 👍
Btw OutletContext is more for custom states, for accessing parent loaders use useMatches donde all loaders data is already there