query
query copied to clipboard
Solid: Cannot access 'refetch' before initialization
Describe the bug
When deferStream is false, the withError example here will be broken: https://stackblitz.com/edit/tanstack-query-aqydpb?file=src%2Froutes%2Fwith-error.tsx (forked from official solid start example)
Your minimal, reproducible example
https://stackblitz.com/edit/tanstack-query-aqydpb?file=src%2Froutes%2Fwith-error.tsx
Steps to reproduce
just remove deferStream or set it to false in the with-error example
Expected behavior
should show the actual error, instead of Cannot access 'refetch' before initialization
How often does this bug happen?
Often
Screenshots or Videos
Platform
Not relevant
Tanstack Query adapter
solid-query
TanStack Query version
5.30.6
TypeScript version
No response
Additional context
No response
### Tasks
I'm getting this same error regardless of how I set deferStream.
@ardeora FYI