@dypai-ai/client-sdk - v1.12.0
    Preparing search index...

    Interface UseMutationOptions

    Options for the useAction hook.

    interface UseMutationOptions {
        method?: HttpMethod;
        onError?: (error: DypaiError) => void;
        onSuccess?: (data: any) => void;
    }
    Index

    Properties

    method?: HttpMethod

    HTTP method (default: POST)

    onError?: (error: DypaiError) => void

    Called on error

    onSuccess?: (data: any) => void

    Called on success