Server function middleware's aren't receiving the request object
Could someone help me out here, think I might be missing something obvious. I would expect this middleware to log out the request object so it can be used for authentication etc.
But instead the log is always
undefined
being invoked from both route loader and useQuery:
On version 1.132.313 Replies
harsh-harlequin•2h ago
createMiddleware({ type: 'function' })
and then use getRequest inside it
stormy-goldOP•2h ago
ah that has worked thank you! it is a little confusing as docs say
function
type is a subset of request, so would have expected a request middleware to still receive the request on function calls.
It means having to maintain separate middlewares for route requests and function calls I guessabsent-sapphire•1h ago
might be a bug. can you please create a GitHub issue including a complete reproducer example?