Chingiz Zaripov
Results
2
comments of
Chingiz Zaripov
I've also used ```enableReinitialize: true``` and it falls with error ```Maximum update depth exceeded```, so i just used ```setValues``` function to "reset" form on submit. ``` onSubmit: (values, {setValues}) =>...
as temporary solution, i used this: ``` function convertCanvasToFile(canvas: HTMLCanvasElement): Promise { return new Promise((resolve, reject) => { canvas.toBlob((blob) => { if (blob) { const file = new File([blob], 'image.png',...