react-forms icon indicating copy to clipboard operation
react-forms copied to clipboard

Can only update a mounted or mounting component (Submit).

Open DeividasBakanas opened this issue 8 years ago • 1 comments

Submit component is rendered out of the form before form is mounted. If Submit component is unmounted before Form is mounted error is raised.

image

Error reproduction: https://codesandbox.io/s/yjq0mm6m11

Click Toggle submit, then Toggle form and you'll get the error.

DeividasBakanas avatar Sep 21 '17 16:09 DeividasBakanas

Done: https://github.com/SimplrJS/react-forms/commit/513172f9e11471e88bb93e002a8fd1163d1fd697 (with a temporary setTimeout in one place, so I'm not closing the issue)

DovydasNavickas avatar Sep 22 '17 17:09 DovydasNavickas