React Router API Reference
    Preparing search index...

    Type Alias GetLoadContextFunction

    GetLoadContextFunction: (
        event: APIGatewayProxyEventV2,
    ) => MaybePromise<RouterContextProvider>

    A function that returns the value to use as context in route loader and action functions.

    You can think of this as an escape hatch that allows you to pass environment/platform-specific values through to your loader/action.

    Type Declaration

      • (event: APIGatewayProxyEventV2): MaybePromise<RouterContextProvider>
      • Parameters

        • event: APIGatewayProxyEventV2

        Returns MaybePromise<RouterContextProvider>