AF10
form.rehydrate() was called, but the form has no defaultValues factory to re-run.
In development this reads:
attaform form.rehydrate(): no defaultValues factory was captured. Configure useForm({ defaultValues: () => ... }) to enable rehydrate.
What happened
rehydrate re-runs the defaultValues function and resets the form around its fresh result. That contract only exists when defaultValues was passed as a function; a plain object (or nothing) leaves nothing to re-run, so the call throws at the call site rather than resolving to a stale reset.
How to fix it
const form = useForm({
schema,
defaultValues: () => fetchDraft(id),
})
// Later, when the source data changes:
await form.rehydrate()
The form covers defaultValues in both shapes.