This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-10-09
Channels
- # admin-announcements (9)
- # boot (114)
- # cider (15)
- # cljs-dev (10)
- # clojure (35)
- # clojure-boston (5)
- # clojure-dev (39)
- # clojure-greece (1)
- # clojure-japan (10)
- # clojure-nl (3)
- # clojure-poland (2)
- # clojure-russia (10)
- # clojure-sg (8)
- # clojure-switzerland (1)
- # clojure-uk (34)
- # clojurescript (76)
- # clojurescript-ios (3)
- # clojurewerkz (1)
- # clojurex (9)
- # cursive (3)
- # datomic (1)
- # devcards (137)
- # emacs (5)
- # events (1)
- # hoplon (99)
- # jobs (1)
- # ldnclj (50)
- # off-topic (1)
- # om (3)
- # onyx (10)
- # re-frame (4)
- # reagent (1)
- # ring-swagger (15)
- # yada (35)
@pupeno: bind-fields
has a callback fn arg where you can sink your local binded atom back to app-db
[bind-fields inputs-form-template inputs-form-cache
(fn [_ _ doc]
(dispatch [:inputs-form-update [doc (:id @current) (:date @current)]]))]
where inputs-form-template is a def
form and inputs-form-cache
is a local ratom (let [inputs-form-cache (reagent/atom {})] ... [bind-fields ...] ...)
Hello.