mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
test(start-plugin-core): run the last middleware rows through Start's middleware chain
The fast-tier rows "leaves unrelated SSR middleware chains as written" and "isomorphic, server-only and middleware implementations in one module" called a middleware's .server() with a hand-written next. Each now calls a server fn that uses the middleware (a user of the factory in another module, a createServerFn().middleware([mw]) next to the case), from the client over HTTP and from server code inside a real request, and reads what the middleware put into the handler's context. The env-separation pin "a function middleware validator on a builder variable" called the validator directly. A server fn with that middleware now returns the data the validator gave, called by id through Start's server entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1fcbf2efc4
commit
4e434e01bc
3 changed files with 32 additions and 10 deletions
Loading…
Add table
Add a link
Reference in a new issue