Kozea / formol

An opinionated react form framework.
MIT License
190 stars 17 forks source link

transientItem inherit every field from item even if those fields are conditionals #60

Closed Le-Stagiaire closed 4 years ago

Le-Stagiaire commented 4 years ago

At the first render the item that comes from a sync is empty, so if you have conditional fields, they will not be rendered, transientItem is built on this first render and even if after that object is gathered and conditionals are verified, transientItem will never get the value for the conditional fields since it will try to update its props that it has gotten from the first render. So conditional fields will stay empty even if there's value to put inside.

(I've tried my best to explain it :D )

paradoxxxzero commented 4 years ago

Fixed in 2.7.1