Skip to content
Discussion options

You must be logged in to vote

React Query provider having some client dependency not working with latest Nextjs so create wrapper component with use client.

In SSR we require Singleton client that reason wrap with cache and expose. Otherwise it's creating multiple instances. We require same instance accross application - both SSR and CSR component. Check their docs

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JurajKavka
Comment options

@2manoj1
Comment options

Answer selected by JurajKavka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants