reagent-project / reagent-forms

Bootstrap form components for Reagent
339 stars 78 forks source link

Allow forms to change #98

Closed ghost closed 6 years ago

ghost commented 8 years ago

This PR contains the easy fix for #49: It simply changes bind-fields to return form instead of (fn [] form), which, as a side-effect, also causes the form to be examined by reagent-forms every time the atom changes.

If you want a more complex fix, which retains the behaviour of Reagent Forms to only examine the form once, but still allow it to change (in a non-structural way, e.g. by adding [:option]s) later, please tell me, so I can revise this PR.

Fixes: #49