CIA Compliance Manager API Documentation - v1.0.1
    Preparing search index...

    Interface ServiceDataState<T>

    Service data state

    interface ServiceDataState<T> {
        data: T | null;
        error: Error | null;
        loading: boolean;
        refetch: () => void;
    }

    Type Parameters

    • T

      Type of data returned by the service

    Index

    Properties

    data: T | null

    Fetched data, null if not yet loaded or if an error occurred

    error: Error | null

    Error if fetch failed, null otherwise

    loading: boolean

    Loading state - true while data is being fetched

    refetch: () => void

    Function to manually trigger a refetch of the data