cloudflare / cloudflare/cloudflare-docs

Document React Router Middleware Usage

Open
#25,997 3 comments 0 reactions 6 assignees Claimed by @WalshyDev View on GitHub
content:new documentation October 2025 product:workers stale
Dominant language
MDX
Stars
5.2k
Forks
16.7k
Avg merge
2d 6h
Merged PRs (30d)
337

Description

### Proposed changes

[Middleware](https://reactrouter.com/how-to/middleware#middleware) is now stable in React Router framework mode. It requires a change to how custom server implementations (like `app/worker.ts` in the starter template) pass context to the request handler.

It would be _great_ to hear the CF team's official advice on wiring this up.

### Subject Matter

React Router middleware

### Content Location

an addition to the [React Router framework guide](https://developers.cloudflare.com/workers/framework-guides/web-apps/react-router/)

### Additional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.