react-utils - v1.0.31
    Preparing search index...

    Interface UsePostResult<T>

    POST request results

    interface UsePostResult<T = unknown> {
        data: null | T;
        error: null | string;
        loading: boolean;
        sendPostRequest?: () => Promise<void>;
    }

    Type Parameters

    • T = unknown

      Response data type

    Index

    Properties

    data: null | T

    Response data

    error: null | string

    Error message

    loading: boolean

    Loading state

    sendPostRequest?: () => Promise<void>

    Function to trigger POST request