Next.js Discord

Discord Forum

Are all my pages client side because of wrapping React Query Provider in layout?

Unanswered
Yacare Caiman posted this in #help-forum
Open in Discord
Yacare CaimanOP
In the code, QueryProvider is a client side page, are all the children I passed to it through layout client side pages now?

2 Replies

No, because it is rendered as a children
@Yacare Caiman In the code, QueryProvider is a client side page, are all the children I passed to it through layout client side pages now?
Australian Freshwater Crocodile
No. They will be server components, not client side.

This works because React allows server components to be passed as children.