Next.js Discord

Discord Forum

React-Query let all components a client side

Answered
Barbary Lion posted this in #help-forum
Open in Discord
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.
View full answer

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