---
title: getContext
---

# getContext

<a href="https://github.com/remix-run/remix/blob/remix@3.0.0-alpha.6/packages/async-context-middleware/src/lib/async-context.ts#L30" target="_blank">View Source</a>

## Summary

Get the request context from `AsyncLocalStorage`.

## Signature

```ts
function getContext(): RequestContext;

```

## Returns

The request context