This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-01
Channels
- # admin-announcements (1)
- # aws (1)
- # beginners (14)
- # boot (19)
- # cljs-dev (10)
- # cljsrn (2)
- # clojure (64)
- # clojure-android (4)
- # clojure-dev (5)
- # clojure-greece (7)
- # clojure-italy (10)
- # clojure-russia (42)
- # clojure-spec (117)
- # clojure-uk (78)
- # clojurescript (160)
- # cloverage (1)
- # conf-proposals (1)
- # cursive (8)
- # datomic (93)
- # editors (8)
- # editors-rus (5)
- # figwheel (1)
- # flambo (14)
- # hoplon (95)
- # jobs (2)
- # jobs-rus (1)
- # lambdaisland (4)
- # lein-figwheel (6)
- # leiningen (3)
- # om (106)
- # onyx (33)
- # planck (6)
- # proton (3)
- # protorepl (2)
- # random (2)
- # re-frame (9)
- # reagent (5)
- # ring (1)
- # untangled (61)
- # yada (50)
A question about dynamic subscriptions: If I have a subscription that takes another subscription as input but also allows for a dynamic subscription I get some strange behavior. The subscription is triggered twice, first the directly subscribed value has changed but the dynamic value (of the same subscription) is the same, but then it is triggered again and then both the directly subscribed value and the dynamically subscribed value are the same. To illustrate I have put together a simple repo: https://github.com/vikeri/re-frame-dyn-sub-example/blob/master/src/cljs/re_frame_testing/subs.cljs
When db is incremented it will print: Times-ten Dynamic: 0 Input: 1 Times-ten Dynamic: 1 Input: 1 (Ideally I would like to have the subscription triggered only once, and thus avoiding the first trigger (naturally it is problematic to have the same subscription deref to different values))
@lwhorton: If this is up to date, then I doubt it. https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure#concurrent-programming
oops, let me clarify — i mean react refs; https://facebook.github.io/react/docs/more-about-refs.html
Oh that's quite different 🙂 No idea with that one.
@lwhorton had the same question recently
@lwhorton the :ref
key can be a function. The function gets the element as argument. You can stash that in an atom or whatever and then do stuff with it.
ah, much obliged @martinklepsch