Remix
Remix
remix/router · InterfaceView Source

ContextEntry

Summary

A request-context entry provided by middleware. The optional property field installs the value as a direct request-context property when the middleware sets the value.

Signature

interface ContextEntry<key, value> {
  key: key;
  property?: string;
  value: value;
}

Properties

key

The context key that stores the value.

property

Optional direct property name installed on the request context.

value

The value type stored for the context key.