In a File Route how to make it ignore the parent layout?

I have set a default layout at the root. Some url paths need an empty layout though. How can I escape from the root layout and override it or make it use an empty layout?
2 Replies
peerreynders
peerreynders4w ago
To get the behaviour you want you'll probably have to reorganize around Route Groups. While <Router /> stays in src/app.tsx you have an empty layout there; only applying the main layout via src/routes/(main).tsx and all the routes that use it under src/routes/(main)/ Example: https://discord.com/channels/722131463138705510/1235643426033238057/1235919354453823620
glassy
glassyOP4w ago
Thank you

Did you find this page helpful?