dr11
dr11

Reputation: 5726

How to use react-query without QueryClientProvider

I'm unable to wrap my code with the QueryClientProvider.

Is that possible to configure the react-query in a different way? I can't modify anything inside any of the render functions.

Upvotes: 1

Views: 1544

Answers (1)

TkDodo
TkDodo

Reputation: 28733

No, it’s not possible. React Query uses React context to distribute the QueryClient.

Upvotes: 1

Related Questions