How can I access the trpc context in zod's refine function?
To do something like
Edit:
It would allow for easier UX because I can use the existing validation code in the frontend to show the user the errors at the correct field.
Edit:
It would allow for easier UX because I can use the existing validation code in the frontend to show the user the errors at the correct field.