@coveo/headless
    Preparing search index...

    Interface InsightEngineOptions

    The insight engine options.

    interface InsightEngineOptions {
        configuration: InsightEngineConfiguration;
        loggerOptions?: LoggerOptions;
        middlewares?: Middleware<{}, InsightEngineState, Dispatch<UnknownAction>>[];
        navigatorContextProvider?: NavigatorContextProvider;
        preloadedState?: InsightEngineState;
    }

    Hierarchy (View Summary)

    Index

    Properties

    The insight engine configuration options.

    loggerOptions?: LoggerOptions

    The logger options.

    middlewares?: Middleware<{}, InsightEngineState, Dispatch<UnknownAction>>[]

    List of additional middlewares. A middleware is a higher-order function that composes a dispatch function to return a new dispatch function. It is useful for logging actions, performing side effects like routing, or turning an asynchronous API call into a series of synchronous actions.

    type MiddlewareAPI = { dispatch: Dispatch, getState: () => State }
    type Middleware = (api: MiddlewareAPI) => (next: Dispatch) => Dispatch

    Redux documentation on middlewares.

    navigatorContextProvider?: NavigatorContextProvider

    An optional function returning navigation context. (referer, location, UserAgent)

    preloadedState?: InsightEngineState

    The initial headless state. You may optionally specify it to hydrate the state from the server in universal apps, or to restore a previously serialized user session.