Feature: Make context available in server function validators #3648
dxptqhtlutehvlyxcmtg
started this conversation in
Ideas
Replies: 1 comment
-
can't you read the context via getWebRequest()? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
Beta Was this translation helpful? Give feedback.
All reactions