TanStackT
TanStack7mo ago
3 replies
primary-violet

How do I read context in middleware?

Hi all,
I have a middleware function in which I want to read the contents of 'context' to determine if I need to do something or not. Like the screenshot shows, context is of type 'never' but when I console.log the context out, I do see some values.
How should I do this?
Schermafbeelding_2025-06-30_om_16.13.36.jpg
Was this page helpful?