Remix
Remix
remix/middleware/async-context · FunctionView Source

asyncContext

Summary

Middleware that stores the request context in AsyncLocalStorage so it is available to all functions in the same async execution context.

Signature

function asyncContext(): Middleware;

Returns

A middleware function that stores the request context in AsyncLocalStorage