Skip to content

Determine whether the query was triggered by an invalidation #4757

Open
@kelly-hansen

Description

@kelly-hansen

I'd like to access something like isInvalidated from within a queryFn so I can do conditional logic within that queryFn. The only thing I see available is forced within the api object, but that is not always true for invalidation refetches. Can this be added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions