From 83e0ac15c18f332f21450318e3d29d7aa3e86e97 Mon Sep 17 00:00:00 2001 From: Abhishek Raj Date: Sun, 26 Apr 2026 00:26:15 +0700 Subject: [PATCH] docs: Fix server function middleware prop Server function middleware's `.client()` and `.server()` methods do not expose `request` argument. --- docs/start/framework/react/guide/middleware.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/start/framework/react/guide/middleware.md b/docs/start/framework/react/guide/middleware.md index f296f13fe38..f2b1a1da415 100644 --- a/docs/start/framework/react/guide/middleware.md +++ b/docs/start/framework/react/guide/middleware.md @@ -225,7 +225,7 @@ The `.client` method is used to define client-side logic that the middleware wil import { createMiddleware } from '@tanstack/react-start' const loggingMiddleware = createMiddleware({ type: 'function' }).client( - async ({ next, context, request }) => { + async ({ next, context }) => { const result = await next() // <-- This will execute the next middleware in the chain and eventually, the RPC to the server return result },