How to access parent routes loaderData in `head: () => {}`?
I want to localize my meta titles. As of now I load all my translations like this in the
How do I access this in child routes? Inside the component I have a context provider that allows me to call
Any tips on how to set this up? Maybe an inherited context? Any ideas? :D
/$lang/route.tsx file:How do I access this in child routes? Inside the component I have a context provider that allows me to call
useTranslations() but this does not work in the head function of course.Any tips on how to set this up? Maybe an inherited context? Any ideas? :D