This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-25
Channels
- # bangalore-clj (2)
- # beginners (50)
- # boot (21)
- # cljs-dev (2)
- # cljsrn (1)
- # clojure (93)
- # clojure-russia (5)
- # clojure-spec (22)
- # clojure-uk (3)
- # clojurescript (24)
- # data-science (4)
- # datomic (1)
- # events (2)
- # fulcro (46)
- # graphql (9)
- # hoplon (16)
- # lumo (42)
- # off-topic (3)
- # perun (2)
- # protorepl (1)
- # re-frame (10)
- # reagent (12)
- # ring (1)
- # ring-swagger (1)
- # shadow-cljs (12)
- # specter (16)
- # unrepl (10)
Use emacs? Use re-frame? Check out: https://github.com/oliyh/re-jump.el
Cursive also has this capability
hi all ... semi-involved question involving re-frame subscriptions (thanks in advance): I'm using D3 and devcards, so I'm trying the pattern of holding the re-frame stuff in an outer component and have an inner component that manages the D3 work: https://gist.github.com/rgm/0e75c4bf069a9136e98179d9596c4bae#file-core-cljs-L88
(so there's kind of an inner-inner pseudo component that does D3 enter update exit which may not be entirely relevant here)
so the question: I want to pass the subscription data in from the outermost component, but passing in the un-deref'd subscription smells wrong to me. Is it?
also, clearly I'm not understanding something since commenting out the line linked above makes the machinery stop working: the outer component is seeing the adds/removes to the app db correctly (ie. L104 looks right), but then the inner D3 component's componentDidUpdate
stops getting called.
@borkdude yes, Cursive has special support for re-frame. See: https://github.com/cursive-ide/cursive/issues/1816 https://github.com/cursive-ide/cursive/issues/1549
@rgm Here is the original description of that pattern, which may help you to track down the problem: https://github.com/Day8/re-frame/blob/master/docs/Using-Stateful-JS-Components.md