Solidstart routing group
I have two routes, login and register, and I want to share a common navbar across these routes. In Next.js, I would typically use the layout system to achieve this. Is there a similar way to implement a shared layout in SolidStart, where the navbar is defined in one place and applied to both routes?
6 Replies
Put your layout in
(auth).tx
as a sibling to the (auth)
folderand now i can catch the login and register route from (auth).tsx ??
Yeah those two routes will be available as
props.children
in the layout like Next's app routersorry brother it is just not working in my case
hmm try restarting the dev server?
the login and register routes work without the layout being there yeah?
yes
after restarting the server it is working as like next.js. actullay i am very noob in solid.js but i really love how it approach :solid:
thank you for your help