Sanity Library Reference Docs
    Preparing search index...

    Interface GetHookCollectionStateProps<Args, State>

    interface GetHookCollectionStateProps<Args, State> {
        args: Args;
        children: (props: { states: State[] }) => ReactNode;
        hooks: HookCollectionActionHook<Args, State>[];
        resetRef?: Ref<() => void>;
    }

    Type Parameters

    • Args
    • State
    Index

    Properties

    args: Args
    children: (props: { states: State[] }) => ReactNode
    resetRef?: Ref<() => void>

    Force hooks state to reset, this pattern is discouraged and only supported for Document Actions for backwards compatibility.