Short answer You can't. Because you shouldn't. Long answer In Next.js, layouts stay the same when you switch routes, so they don't re-render. This helps keep the state and makes things faster by not re-rendering. But it also means layouts can't direc...

Markdown supported · ⌘↵ to post
Aryan Chaurasia
Head Tech, House of EdTech
That's an impressive article, but what if instead of making the whole layout client side, we can just use it with the component, right?