Replies: 1 comment
-
I was also wondering if this is possible. Injecting contextual runtime data (without fetching it all the time from the server via |
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
-
Hey there, is there a possibility of adding a custom context (say with a
this
or some other parameter) to a .superRefine addition? I need to use an external variable that I cannot get during the superRefine run, so I need to have something like this:Would it however be possible to have something like this instead? It allows for the functions to be pure and be ran in cases where you obtain the data some way (such as by a database query or an API call) to allow for the schema to have only validation code, rather than also including code to fetch the data itself.
Beta Was this translation helpful? Give feedback.
All reactions