#how to nest a layout without irl?

1 messages · Page 1 of 1 (latest)

frigid badger
#

If I have app/routes/$user.$action.tsx and added an <Outlet> to the component, what do I name the file to nest another component within the <Outlet>? In react we’d just import the component. I tried naming the file $user.$action._form.tsx but it doesn’t seem to work

grizzled heron
#

Using the leading underscore on _form makes it a pathless route, which I believe doesn't work if it's a leaf route

I think giving some more context on what you're trying to achieve would help in figuring out the type of routing structure you're looking for.
What are you expecting the end URLs to look like, and what do you expect to show on those URLs?

frigid badger