Sanity Library Reference Docs
    Preparing search index...

    Interface GetHookCollectionStateProps<Args, State>

    interface GetHookCollectionStateProps<Args, State> {
        args: Args;
        group?: string;
    }

    Type Parameters

    • Args
    • State
    Index

    Properties

    Properties

    args: Args

    Arguments that will be received by the action hooks, onComplete will be added by the HookStateContainer component.

    group?: string

    Name for the hook group. If provided, only hooks with the same group name will be included in the collection.