How to use this with Remix's new layout support in the root.tsx
file?
#183
Replies: 1 comment
-
Lol, just found it out: const data = useRouteLoaderData("root"); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Remix recently started supporting exporting a
Layout
component.How do we set up the root file with that? Because we need to use
useLoader
for thelocale
and usinguseLoader
can blow up 🤔Beta Was this translation helpful? Give feedback.
All reactions