How to bridge global React state and schema validation in multi-tenant enterprise apps without losing your mind.
Press enter or click to view image in full size
If you’ve spent enough time building frontend applications, you eventually hit a wall where the standard “todo-app” tutorials stop helping.
For me, that wall appeared while working on a massive, multi-tenant enterprise healthcare dashboard. We were using the holy trinity of modern React forms: React Hook Form , Zod , and TypeScript . It’s a beautiful stack — until your product manager drops a requirement that completely breaks the standard validation mental model.
The requirement was simple on paper: “Users cannot book appointments in the past. Unless, of course, their specific clinic has the allowPastAppointments configuration turned on for retrospective paper-data entry."
Suddenly, validation isn’t a universal truth anymore. It’s dynamic.…