type alias PopulateLoadContext
Since 0.2.0

Hook for adding application values to the per-request React Router context.

Called AFTER the plugin has set servicesContext and userContext, so it augments the defaults rather than replacing them. It receives the provider and mutates it; it does not return one, because only the plugin can construct an instance of the correct class.

Definition

() => void

Usage

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