-
I have a route.tsx file that serves as a common layout for /auth/* routes with an . How can I display specific content in the Outlet section only when accessing the /auth path directly?
|
Beta Was this translation helpful? Give feedback.
Answered by
kiliman
Oct 31, 2024
Replies: 1 comment 3 replies
-
Change the folder to
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I typically need some one-off or custom feature for a specific route, I generally reach for Remix
handle
https://remix.run/docs/en/main/route/handleIn your layout component, use
useMatches
to find any route handles.Then in your auth route, simply export a
handle
with your customSubHeader
component