Fork me on GitHub
#keechma
<
2018-06-12
>
mynomoto16:06:49

@mihaelkonjevic it's about https://github.com/keechma/forms I was not aware that the forms in toolbox were different.

mihaelkonjevic17:06:58

@mynomotono, there is no official way to handle external errors in that library. Keechma toolbox implements a different form lib which is coupled to keechma, but also does much more for you. Check https://github.com/gothinkster/clojurescript-keechma-realworld-example-app/blob/master/src/cljs/realworld/forms/ for examples on how to use it. keechma/forms library is still a great solution if you’re using it with a vanilla reagent app, and keechma toolbox is building on top of it, but for instance it keeps the form state in app-db instead of separate atoms

mynomoto17:06:15

For that I added the record on re-frame db, I'm happy with the solution. I will keep the external errors separated for now. I think that we should have a lightweight protocol for forms and multiple implementations for different frameworks. keechma/forms is nice but I miss the ability of adding validation errors by other means.