Replies: 2 comments 4 replies
-
I'm not sure how we call it, but I would like to introduce something like pathless components. With that in mind, #949 is already designed to be flexible to support it. So, the next step is to design the createPages API, after v0.22.0. cc @tylersayshi I'm not sure about layout reset, but the same technique should be applied. You shouldn't use the parent layout if you ever want to reset it. |
Beta Was this translation helpful? Give feedback.
-
@tylersayshi
Yes, I think there should be a new API. I'd also like to consider supporting siblings.
I'm strictly against to this in createPages API. createPages API should be more explicit and in fs-router, it can be |
Beta Was this translation helpful? Give feedback.
-
Have you considered allowing nested pages or layouts with fs router to "reset" so they don't include the parent layouts? I try to avoid that and don't currently need it, but the use case can arise.
Other routers (SvelteKit, NextJS, Remix, Tanstack Router) have added groups or "pathless routes" to their fs routers as another way to solve similar use cases.
Or revisit #272 to keep Waku's router from sprawling into these advanced use cases?
Beta Was this translation helpful? Give feedback.
All reactions