Next.js Discord

Discord Forum

How to not render component from root layout when on dashboard route?

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Brown bearOP
Just like the title says, what is the best practice way to not render a component from my root layout when I am on certain routes? I could just take the component out of the root, but it seems tedious for all the other routes where it is needed.

1 Reply

Brown bearOP
Nevermind, found the answer in the documentation.