-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: allow to ignore layout on config #94
Comments
With hybrid routes, there are some extended conventions. As you know, And typically, you'd want all your child routes to use the parent layout. However to opt out of this, you would typically use the To do the equivalent in hybrid routes, just name your child route with the So |
See #58 for details. I should add this to the README. |
@kiliman smart! Thanks for the explanation. Would it make sense to have a cheat sheet in the documentation? I have this in the README of my project:
Maybe it makes sense to reorganize the README since I feel it has grown historically and I tend to oversee parts of it. I can submit a PR for that if you want. |
Yes, I've been meaning to rewrite the README. I want to highlight the differences between |
On related note, how would one solve the following with the hybrid approach.
Perhaps it's possible to write some custom logic in the existing implementation with a custom annotator to ignore the layout up to a given segment? Perhaps something as follow 🤔
|
I have the following routes:
routes/app+/ui.tsx
routes/app+/ui-without-layout.tsx
routes/app+/_layout.tsx
In
ui.tsx
, I want to show the layout. Inui-without-layout.tsx
, I don't want to show the layout.Since both routes are inside the
routes/app+
folder, the layout is shown on both routes.I can hide the layout with a condition inside the react component of
_layout
.But it will be nicer if I have the possibility in the
remix.config
ofremix-flat-routes
to ignore the layout.Something like this:
The text was updated successfully, but these errors were encountered: