Skip to content

Commit 83e0ac1

Browse files
authored
docs: Fix server function middleware prop
Server function middleware's `.client()` and `.server()` methods do not expose `request` argument.
1 parent b732c8a commit 83e0ac1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/start/framework/react/guide/middleware.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ The `.client` method is used to define client-side logic that the middleware wil
225225
import { createMiddleware } from '@tanstack/react-start'
226226

227227
const loggingMiddleware = createMiddleware({ type: 'function' }).client(
228-
async ({ next, context, request }) => {
228+
async ({ next, context }) => {
229229
const result = await next() // <-- This will execute the next middleware in the chain and eventually, the RPC to the server
230230
return result
231231
},

0 commit comments

Comments
 (0)