You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am using esbuild to build my react app, however, in development I get an error saying that QueryClient is not available:
QueryClientProvider.js:36 Uncaught Error: No QueryClient set, use QueryClientProvider to set one
at HJr (QueryClientProvider.js:36)
at devtools.js:267
at ZA (react-dom.development.js:14985)
at THe (react-dom.development.js:17044)
at HHe (react-dom.development.js:19098)
at HTMLUnknownElement.no (react-dom.development.js:3945)
at HTMLUnknownElement.ps.__trace__ (inline-script-content.js:146)
at Object.gm (react-dom.development.js:3994)
at cp (react-dom.development.js:4056)
at uSe (react-dom.development.js:23964)
seems to be an issue with a separate version of react-query being used for the devtools, and so they are using different contexts. Let’s please keep the discussion over there
Describe the bug
I am using esbuild to build my react app, however, in development I get an error saying that QueryClient is not available:
My app is following standard practice:
My esbuild configuration is also pretty straight forward:
When I use my webpack build, everything is working as expected. When I build in production mode or remove devtools everything is working as normal.
The text was updated successfully, but these errors were encountered: