This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-21
Channels
- # aws (2)
- # bangalore-clj (14)
- # beginners (20)
- # boot (20)
- # cider (7)
- # cljs-dev (38)
- # cljsrn (13)
- # clojure (487)
- # clojure-argentina (3)
- # clojure-dev (15)
- # clojure-gamedev (4)
- # clojure-italy (3)
- # clojure-poland (1)
- # clojure-russia (1)
- # clojure-spec (25)
- # clojure-uk (47)
- # clojurescript (127)
- # datomic (125)
- # defnpodcast (1)
- # hoplon (27)
- # jobs (4)
- # lein-figwheel (2)
- # leiningen (1)
- # luminus (5)
- # off-topic (3)
- # om (25)
- # onyx (9)
- # parinfer (3)
- # pedestal (20)
- # planck (65)
- # re-frame (43)
- # reagent (4)
- # remote-jobs (1)
- # ring-swagger (2)
- # rum (9)
- # spacemacs (1)
- # unrepl (37)
- # vim (1)
@urbank : on every re-render or just some? your view function runs on every render, so you could just put logic right in there, or call another function, which will run on every re-render
what i do myself is send all transact or update messages on a go channel. then when i listen to that channel, if a particular key that was sent along with the transact or update messages is of interest, i do something specific when i receive that transact for that key
incidentally the reason i do this in Om Now is so that any component function can transact on any part of Om state, even if it is not related to the cursor that component received
@ajs Ah, I see. Interesting. Haven't seen go block used much in the om next examples within the ui
Hey guys, I'm sure this is a Clojure mistake but I'm having a tough time figuring out what my issue is with updating my state. Does anything jump out? When I call this, state doesn't change.
(om/update-state! this
update-in
[:props :project/nodes]
(fn [nodes]
(vec (map #(merge % {:node/selected true})
nodes))))
@urbank you can use :tx-listen
to get a feed of transactions. We've been considering using it for things like reporting google analytics.
okay, so this is the problem from coding late at night 🙂 I'm overriding state in componentWillReceiveProps
Hi all, I’m trying to use om/force
, and the documentation says to look for a :target
key in the ast, but it doesn’t seem to exist in ast. I have, however, found :target
in env
. Has the target been moved to env, or is this a different thing altogether?