I'm not exactly sure this is a direct issue with this form library, but i've been struggling on this a while, so gonna post:
i have a form inside a dialog. the dialog is pretty standard and tracks it's own open/close state. whenever it closes i would like to have it reset the form, so in the openChange prop i say something like
if (closing) form.reset()
if (closing) form.reset()
. for some reason though, this doesn't actually reset the form. i assume it's something to do with the render vs state update cycle?
here's some of the relevant code cut down. is there something obvious going wrong here?