Closed stephen776 closed 9 months ago
You're missing the +
suffix on the _dashboard folder. And _layout.tsx should be under _dashboard not personnel.
You can only have "naked" folders in the last segment since that is for collocation. You need to add the + suffix in folders for organization.
oh perfect!. Missing the + on _dashboard
was the issue. Thank you!
This is related to previous issue: #63 but I am opening a new one as the workaround suggested does not solve another (potentially more common) case:
I have a pathless layout directory and children within. I'd like all children to use the parent layout but I also want to use the
+
convention on said children. As I only have a single shared parent layout, I can't nest the parent insidepersonnel+
Here is a simplified directory structure
personnel+
should nest within the_dashboard
layout but it does not. Here is the output of the route config: