TanStackT
TanStack2w ago
6 replies
full-green

Server function middleware Response return

What is the reason that request middleware allows the return of a Response object to short-circuit the request, but server function middleware doesn't allow it? Or is it only a types thing?

I am currently throwing the Response in the function middleware to get around the type issue, but not sure if that even works properly.
Was this page helpful?