You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ziimakc
changed the title
Nested layout works as file, but not as folder with the same name and index file inside
Layout can't be located in folder with index with routing v2
Jan 26, 2023
ziimakc
changed the title
Layout can't be located in folder with index with routing v2
Layout can't be located in folder with routing v2
Jan 26, 2023
After some testing I can say that user.$id._index/index.tsx can be located in folder, but not it's layout user.$id/index.tsx that needs to be a file user.$id.tsx
We just published version v0.0.0-nightly-a024557-20230207 which involves this issue. If you'd like to take it for a test run please try it out and let us know what you think!
What version of Remix are you using?
1.11.1
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
npx create-remix@latest
Switch to V2 routing, and run
remix routes
Expected Behavior
Following layout should work no matter if files or the same folders with
index.tsx
inside are used:user.$id/index.tsx
- user layoutuser.$id._index/index.tsx
- nested in user layoutActual Behavior
Works:
user.$id.tsx
- user layoutuser.$id._index.tsx
- nested in user layoutDoesn't:
user.$id/index.tsx
- user layoutuser.$id._index/index.tsx
- nested in user layoutThe text was updated successfully, but these errors were encountered: