Make page.tsx file not mandatory when there is layout.tsx with some parallel routes. #60311
cookieMonsterDev
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
No response
Background
Recently worked on a new project with nextjs and decided to try new parallel routes. Found that components that we get from routes needed to be used inside the layout, in my case it is two components. The thing is I still need a page file inside projects folder cause that is how next works, but is kind of dumb that I need to return the null inside the page to make everything work.....
Proposal
In general, the would be better to pass some setting or property in layout to make its known that the page is blank. instead of this
page => null
Beta Was this translation helpful? Give feedback.
All reactions