want a global middleware use case #3022
Unanswered
okxiaoliang4
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
want a global middleware use case
1.
globalMiddleware
cannot cross routes.like
__root.tsx
import themiddleware/global.ts
when
index.tsx
test
serverFn thecontext.session
isundefined
2. serverFn context types cannot inference.
https://stackblitz.com/edit/tanstack-router-6grkg55g?file=app%2Fmiddleware%2Fglobal.ts
Beta Was this translation helpful? Give feedback.
All reactions