-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
solid-query 4.20.2 and 4.20.4 fail to set queryClient in dev mode with vite #4673
Comments
@ardeora fyi |
Thanks! I'm taking a look at this. |
For the sake of reproducibility I get this also with both the latest Deno and Nodejs. On macOS and Firefox. |
Thank you so much for the thorough reproduction. I am still working on this and just posting this as an update. Building the library locally and using the build from the local server, The library works as expected. I published |
Update: I was able to create a minimal reproduction of this issue without any Tanstack query code and issue still persists. It seems like something maybe |
this might be related thisbeyond/solid-dnd#78 |
I'll close this issue because a) it's an upstream issue and b) I think @ardeora has reverted the change |
Describe the bug
On versions 4.20.2 and above I get Uncaught Error: No QueryClient set, use QueryClientProvider to set one, but only in dev mode.
After build works fine. Previous version, 4.19.1, also works well in dev mode, as expected.
Your minimal, reproducible example
4.20.2 (Not working): https://stackblitz.com/edit/solidjs-templates-bkmykc
4.19.1 (Same code, working): https://stackblitz.com/edit/solidjs-templates-qwuff7
Repo with code used: https://github.com/eyenalxai/solid-query-bug
Steps to reproduce
Expected behavior
I expected Uncaught Error: No QueryClient set not to happen but it did.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Tanstack Query version
4.20.2 and 4.20.4
TypeScript version
4.8.2 and 4.5.4
Additional context
No response
The text was updated successfully, but these errors were encountered: