@hateoas-ts/resource-react - v1.4.3
    Preparing search index...

    Type Alias UseReadResourceOptions<T>

    type UseReadResourceOptions<T extends Entity> = {
        initialGetRequestHeaders?: Record<string, string>;
        initialState?: State<T>;
        refreshOnStale?: boolean;
    }

    Type Parameters

    • T extends Entity
    Index

    Properties

    initialGetRequestHeaders?: Record<string, string>

    HTTP headers to include if there was no existing cache, and the initial GET request must be done to get the state.

    These headers are not used on subsequent refreshes/stale cases.

    initialState?: State<T>
    refreshOnStale?: boolean