-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
react-query@5.91.2 tries to call query.isFetched() in QueryObserver #10298
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Description
Describe the bug
Exactly this release has some wrong internal reference to an outdated package, as I think, cause it tries to call query.isFetched() when assigns isFetched property in createResult(query, options) method return value. And of course fails with an error "isFetched() is not defined"
Prior version access to query.isFetched property, not method
Your minimal, reproducible example
no needed, check out the code
Steps to reproduce
call simple useQuery() with any options
Expected behavior
As a user I expect no error here in the simplest query
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
- OS: Windows 11
- Browser: Chrome
- Version: 146.0.7680.80
Tanstack Query adapter
react-query
TanStack Query version
5.91.2
TypeScript version
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels