-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Bug: Cannot read properties of null (reading '__previousQueryOptions') #7521
Comments
please show a minimal sandbox reproduction, thank you |
Experiencing the same issues on v5.40.1, looks like it has something to do with the query not being resolved (error state) |
I'm experiencing this as well |
const query = createQuery(()=>({queryFn: ()=> new Promise((resolve)=> setTimeout(resolve,10000))})) Now open the dev tools and press restore loading when the query hasn't fininshed yet |
I think #8054 is related and has a reproduction: If someone wants to work on a fix, please do |
Describe the bug
When you press "Restore Loading" in Dev tools, when the query is currently really fetching you get following error:
Steps to reproduce
Expected behavior
Either disable this button or deal with the field beeing null.
How often does this bug happen?
Always
Screenshots or Videos
Platform
Tanstack Query adapter
solid-query
TanStack Query version
5.40.0
TypeScript version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: