This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-29
Channels
- # aws-lambda (13)
- # beginners (4)
- # cider (6)
- # cljs-dev (1)
- # cljsrn (4)
- # clojure (134)
- # clojure-android (7)
- # clojure-dev (14)
- # clojure-russia (18)
- # clojure-spec (3)
- # clojurescript (81)
- # core-matrix (2)
- # datomic (9)
- # figwheel (1)
- # hoplon (11)
- # lumo (10)
- # off-topic (18)
- # onyx (78)
- # pedestal (5)
- # portkey (2)
- # re-frame (8)
- # reagent (3)
- # rum (1)
- # spacemacs (23)
- # yada (5)
Update: I tested just now using form-serialize
with the new :npm-deps
compiler option and it seems to work just fine if you want to go that route as well.
(defn handle-submit [event]
(-> event .preventDefault)
(-> (-> event .-target)
(form-serialize #js {:hash true, :empty true})
(js/JSON.stringify nil " ")
(js/alert)))
Thanks so much everyone! I ended up going with the global state atom getting passed to each component and using swap!
I want to take a look at form-serialize