Export QueryClientContext (or getQueryClientContext) for access by class components #2490
-
Currently the context used by the QueryClientProvider is not exported or exposed by Is there any reason not to export either |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
it's an implementation detail the library uses react-context under the hood. If you want to use it in class components, a render props wrapper is the best way to do it:
usage in
|
Beta Was this translation helpful? Give feedback.
it's an implementation detail the library uses react-context under the hood. If you want to use it in class components, a render props wrapper is the best way to do it:
usage in
render
of a class component: