React-Query let all components a client side
Answered
Barbary Lion posted this in #help-forum
Barbary LionOP
hey i am wondered if i used react-query in my nextjs Application, by wrapping the layout.tsx in a queryClientProvider, is this will let all the app components a client side because of that provider ?
Answered by Asian black bear
No, your app won't suddenly be fully client-side due to that.
3 Replies
Barbary LionOP
i don't want to lose the advantages of the server side components if this is right
Asian black bear
No, your app won't suddenly be fully client-side due to that.
Answer
Asian black bear
More details on composition here: https://nextjs.org/docs/app/building-your-application/rendering/composition-patterns