interface SsrRuntime
Since 0.2.0

Everything the plugin needs from a loaded React Router module: the request handler, plus a factory for the RouterContextProvider that handler will accept.

Both are resolved from ONE react-router module object so the provider can never be an instance of a different copy of the class than the one the handler's instanceof check tests against.

Properties

The callable returned by createRequestHandler(build, mode).

Constructs a fresh, empty per-request context provider.

Usage

import { type SsrRuntime } from "react-router-plugin/src/index.ts";