How To - Update Schema
If you want to set or update the schema based on the data from API.
const App = forwardFormContext((_, ctx) => {
useEffect(() => { ctx.setZodSchema((prevSchema) => { // read the zod docs here: https://zod.dev/ // to learn how to modify the existing schema return newSchema }); }, [ctx])
return ( ... )});