Skip to content

No way to know if the data was served from cache. #1906

@vipinnair22

Description

@vipinnair22

Currently there's no property in the response object which tells me if the data was served from cache or if it had to execute the queryFn to return the response.
IIRC, previous version had an isCached flag which provided this information.
I tried to use isFetched flag. But it's set to true in both cases.
Is there something in the response object that can be used to determine if the data was served from cache?

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