This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-08
Channels
- # architecture (8)
- # boot (18)
- # cider (33)
- # cljs-dev (35)
- # cljsrn (3)
- # clojure (77)
- # clojure-dev (6)
- # clojure-dusseldorf (1)
- # clojure-russia (1)
- # clojure-spec (4)
- # clojurescript (40)
- # cryogen (1)
- # cursive (4)
- # dirac (2)
- # emacs (1)
- # figwheel (10)
- # funcool (2)
- # hoplon (21)
- # incanter (2)
- # leiningen (1)
- # lumo (44)
- # off-topic (2)
- # onyx (53)
- # overtone (5)
- # pedestal (8)
- # re-frame (9)
- # reagent (37)
- # rum (9)
- # spacemacs (16)
- # sql (2)
- # testing (1)
- # unrepl (4)
- # untangled (4)
- # yada (16)
Does anyone have any experience using jest with clojurescript? Or could anyone point me into the direction of some info on it?
What is the recommended approach to executing a side-effectful action and storing the result of that action in the state? It seems like the only way is to register a fx
that does the side-effectful action and then dispatch
'es an event with the return value. Example:
(rf/reg-fx
:side-effecty
(fn [x y z]
(let [thing (do-my-side-effect! x y z)]
(dispatch [:set-thing thing]))))
This method seems icky though. Is there another way to approach this problem that I'm missing?hello guys, how do i take apart a collection of subscribed collection? I am getting my feet wet with re-frame. I can pull a json collection of users from my java api, but how do manipulate members of the collection wich is mapped in my db as :data ? A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object. this is the error i get in console when try this [:div "I actually loadeded some data" @data] the data loads fine cause i can view it in the repl (re-frame.db/app-db)
You probably need to transform the json into a Clojure data structure @eveko ?
@denik I've already filed a radar against Safari giving the re-com site as a test case