Per-route layout exports #3713
ScottAgirs
started this conversation in
Proposals
Replies: 1 comment
-
Hmm... trying to figure out what the use case is. I wrote a simple You can have both external Layout components as well as inline layouts. Anyway, this is all done within the standard Remix APIs. Does this meet your needs? If not, can you expand on your needs? https://codesandbox.io/s/remix-layout-outlet-fpmc10?file=/app/components/LayoutOutlet.tsx |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hola amigos!
First-class support for custom layouts - sounds tasty to me, anyone concur'? 🍰 Haha.
My idea was that perhaps similar to
action
andloader
exports, there could belayout
(orwrapper
/container
-something
) export that wraps the returned path childdren with the providedlayout
wrapper component.This IMHO this would simplify the pathless layouts, and possibly passing
params
/request
to thelayout
export could yield additional flexibility.So, for example,
routes/one-love.tsx
could have:Would love to hear what y'all think? 🤗 - useful/doable at all/fun/cool or more like "take a cold shower, Scott!" (?) haha
Beta Was this translation helpful? Give feedback.
All reactions