@mihaelkonjevic Cool, I'll check it out later today!
@mihaelkonjevic With the forms support in toolbox. Is there an established helper function to cancel a form. So reset to the :initial-data
and unmount form? Shouldn't this be a method of the IForm
protocol? Oh, and will IForm protocol also become a multimethod?
@urbank yes forms will be changed to multimethods
you donβt need to reset to initial data
you can just unmount the form, and it will remove the state
if you take a look at the forms/mount-controller you can see how it unmounts the forms
@urbank toolbox 0.1.0-SNAPSHOT-1 is out
forms are now the same as controllers https://github.com/keechma/realworld-starter-kit/blob/latest-keechma/src/cljs/realworld/forms/login.cljs
@mihaelkonjevic Oh, that makes sense. Cool. I'll try the multimethod version now
@mihaelkonjevic Everything seems to be working with the new version. π