Skip to content
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: Cannot access 'refetch' before initialization #7305

Open
egoist opened this issue Apr 19, 2024 · 0 comments
Open

Solid: Cannot access 'refetch' before initialization #7305

egoist opened this issue Apr 19, 2024 · 0 comments

Comments

@egoist
Copy link

egoist commented Apr 19, 2024

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

CleanShot 2024-04-19 at 20 11 46@2x

Platform

Not relevant

Tanstack Query adapter

solid-query

TanStack Query version

5.30.6

TypeScript version

No response

Additional context

No response

Tasks

No tasks being tracked yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant