TanStackT
TanStack2y ago
5 replies
wet-aqua

File based routing /post/new route matching

Hi, I'm making a simple CRUD app using file based routing and I have the following files

posts.tsx
posts.new.tsx

but the issue is that my NewPostComponent shared the layout of the PostComponent (doesn't have an <Outlet /> either) but I actually want /post/new 's root component to be my
__root
component. would this be possible in file based routing?
Was this page helpful?