DEV Community

Discussion on: React Query 101

Collapse
 
ledu6 profile image
Benoit LEGER-DERVILLE • Edited

@tannerlinsley @ivanms1 Thanks for this Post, but 2 more questions?

  1. Why this new context

<QueryClientProvider client={queryClient}>
<App />
</QueryClientProvider>

is now mandatory in v3 ? This is more code to do/maintain!

  1. A which level do you put this wrapper? App level? other? or Colocation is preferred? There is no doc on this point about QueryClientProvider