This is the context passed in to your server adapter's getLoadContext() function. It's a way to bridge the gap between the adapter's request/response API with your React Router app. It is only applicable if you are using a custom server adapter.
Dynamic route params for the current route.
A Fetch Request instance which you can use to read headers (like cookies, and URLSearchParams from the request.
Matched un-interpolated route pattern for the current path (i.e., /blog/:slug). Mostly useful as a identifier to aggregate on for logging/tracing/etc.
A URL instance representing the application location being navigated to or fetched.
Without future.unstable_passThroughRequests enabled, this matches request.url.
With future.unstable_passThroughRequests enabled, this is a normalized
URL with React-Router-specific implementation details removed (.data
suffixes, index/_routes search params).
The URL includes the origin from the request for convenience.
Arguments passed to loader functions