Problem with Children
Unanswered
Caribbean Elaenia posted this in #help-forum
Caribbean ElaeniaOP
I have two different sided layouts: one for the client and the other for the server. I'm trying to add metadata to the server layout, which is 'layout.jsx'. I've imported 'layout.client.jsx' into 'layout.jsx' on the server side. The loading works fine, but the children don't load.
7 Replies
Caribbean ElaeniaOP
layout.client.jsx:layout.jsx:Once loaded, it just returns a black empty screen.
Also, metadata works fine
The layouts need to be handled by nextjs itself.
Either go with a full client side layout or interleave the two. If the reason you are using a client layout is because of that ThemeProvider then check this out;
https://nextjs.org/docs/app/building-your-application/rendering/composition-patterns#using-context-providers
https://nextjs.org/docs/app/building-your-application/rendering/composition-patterns#using-context-providers