Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.4k
Feature: Make context available in server function validators#3648
-
It'd be great if server function validators could receive the current request context. Currently, it seems impossible to have "runtime" schemas that depend on the current user's information, say currency type or time zone. Unlike handlers, which can read the session supplied by middleware via the context, I don't see a way for validators to access that context. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 1 reply
-
can't you read the context via getWebRequest()? |
BetaWas this translation helpful?Give feedback.
All reactions
-
In newer versions of TanStack Start, |
BetaWas this translation helpful?Give feedback.