Skip to content

react-query@5.91.2 tries to call query.isFetched() in QueryObserver #10298

@dmytro-shchurov

Description

@dmytro-shchurov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions