Phantom Stories Library - v0.0.8
    Preparing search index...

    Interface ResourceDataProps<T, Q>

    Props for the Data component, used when the Resource is in a Data state.

    interface ResourceDataProps<T, Q> {
        params?: Q;
        resource: Resource<T, Q>;
        value: T;
    }

    Type Parameters

    • T

      The type of the data in Data state.

    • Q

      The type of optional parameters.

    Hierarchy (View Summary)

    Index

    Properties

    params?: Q

    Optional parameters associated with the Data state.

    resource: Resource<T, Q>

    The Resource instance to render.

    value: T

    The data value from the Data state.