christianalfoni / formsy-react

A form input builder and validator for React JS
MIT License
2.6k stars 438 forks source link

Inputs are rendered 4 times on every update #465

Open birjj opened 6 years ago

birjj commented 6 years ago

All components that use the mixin are rendered 4 additional times every time it updates. It seems to be mostly caused by setting the state._validationError array to a new empty array, although there are also updates that are triggered by seemingly no change in props/state.

JSFiddle