property ReactRouterPluginOptions.populateLoadContext
Since 0.2.0

Adds application values to the per-request React Router context, on top of the servicesContext and userContext keys the plugin always sets.

Replaces the removed getLoadContext option: React Router 8 requires a real RouterContextProvider instance, which an app-supplied function cannot safely construct, so the callback now mutates the provider the plugin built instead of returning a plain object.

Type

Usage

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