@coveo/headless
    Preparing search index...

    Interface InsightFoldingActionCreators

    The folding action creators.

    See Dispatch actions.

    interface InsightFoldingActionCreators {
        loadCollection(
            collectionId: string,
        ): AsyncThunkAction<
            LoadCollectionFulfilledReturn,
            string,
            AsyncThunkInsightOptions<StateNeededByLoadCollection>,
        >;
        registerFolding(
            payload: RegisterFoldingActionCreatorPayload,
        ): { payload: RegisterFoldingActionCreatorPayload; type: string };
    }
    Index

    Methods

    • Loads the results of a collection.

      Parameters

      • collectionId: string

        The collection id to load results for.

      Returns AsyncThunkAction<
          LoadCollectionFulfilledReturn,
          string,
          AsyncThunkInsightOptions<StateNeededByLoadCollection>,
      >

      A dispatchable action.