Skip to content

Removing <Outlet /> breaks Developer Blog tutorial #1571

Closed Answered by LevinFaber
LucasDibz asked this question in Q&A
Discussion options

You must be logged in to vote

The Outlet definies the point where the content of the nested routes is inserted. Since you removed the outlet from the root.tsx, the content of your posts/index.tsx has nowhere to go, to put it simply. This is why you only see the Link to Posts, which is part of the root.tsx. Every Page is constructed using the nested routes, starting at the root(.tsx). If there is no Outlet, no additional layouts (like the one of your posts page) are included.

You can read up on nested routes here:
https://remix.run/docs/en/v1/guides/routing#what-are-nested-routes

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LucasDibz
Comment options

Answer selected by LucasDibz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants