This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-12
Channels
- # beginners (36)
- # boot (11)
- # cider (10)
- # cljs-dev (10)
- # cljsrn (3)
- # clojure (103)
- # clojure-greece (1)
- # clojure-italy (16)
- # clojure-nl (3)
- # clojure-spec (59)
- # clojure-uk (129)
- # clojurescript (125)
- # data-science (29)
- # datomic (30)
- # emacs (12)
- # events (5)
- # fulcro (61)
- # graphql (5)
- # keechma (3)
- # leiningen (9)
- # luminus (7)
- # onyx (26)
- # re-frame (3)
- # reagent (56)
- # reitit (25)
- # ring-swagger (16)
- # shadow-cljs (44)
- # spacemacs (4)
- # specter (2)
- # tools-deps (7)
- # vim (8)
@mihaelkonjevic it's about https://github.com/keechma/forms I was not aware that the forms in toolbox were different.
@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
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.