Skip to content

[Bug] useFetch with no cache policy caches on 500+ #292

Open
@jakelheknight

Description

@jakelheknight
    const { loading, get } = useFetch(
        `${apiGateWayEndpoint}/api/v1/schdule`,
        {
            headers: {
                'Content-Type': 'application/json',
            },
            redirect: 'follow',
            cachePolicy: CachePolicies.NO_CACHE,
        }
    );

   getData = async (id) => {
     get(`?id=${id}`);
  }

Is caching somehow and returning the previous ID's data on a 500+ error.

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