-
Notifications
You must be signed in to change notification settings - Fork 6
Electron: Uncaught Error: No QueryClient set, use QueryClientProvider to set one #8
Comments
That's because the proxyclient doesn't require a trpc provider, this one does. Make sure to follow the docs and wrap your app with a trpc provider or use create jd app and it will do it for u |
Actually i just noticed you did, This wouldn't work on ssr btw because solid query doesn't support ssr yet |
It seems that when
|
Maybe it's the internal error of createQuery? |
no it should be working fine (if you use create jd app, which will not use electron its workin fine), |
This seems like a solid query issue, will keep you updated (according to Aryan) Closing this for now |
I am developing an app with Electron (using electron-vite). It's always showing this error
Here's the repo: https://github.com/zihan-ch/zhim
tRPC client: https://github.com/zihan-ch/zhim/blob/main/src/renderer/src/lib/trpc.ts
main.ts: https://github.com/zihan-ch/zhim/blob/main/src/renderer/src/main.tsx
When I use solid devtools to inspect the app, the context seems to be all right:
I assume that this is an error inside solid-trpc; it might have done some special processes that make the context disappeared.
ps: The app runs well without solid-trpc (the original trpc client instead).
The text was updated successfully, but these errors were encountered: