This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-24
Channels
- # announcements (13)
- # asami (9)
- # aws (3)
- # babashka (13)
- # babashka-sci-dev (7)
- # beginners (32)
- # calva (59)
- # cider (9)
- # clj-kondo (5)
- # cljsrn (14)
- # clojure (98)
- # clojure-brasil (5)
- # clojure-dev (1)
- # clojure-europe (30)
- # clojure-france (12)
- # clojure-nl (1)
- # clojure-norway (7)
- # clojure-uk (7)
- # clojurescript (20)
- # conjure (2)
- # datahike (7)
- # datalog (38)
- # datomic (29)
- # events (1)
- # fulcro (72)
- # graalvm (1)
- # gratitude (3)
- # helix (7)
- # honeysql (3)
- # improve-getting-started (2)
- # introduce-yourself (1)
- # leiningen (13)
- # lsp (17)
- # malli (11)
- # meander (8)
- # nextjournal (3)
- # off-topic (5)
- # pathom (2)
- # portal (43)
- # rdf (2)
- # re-frame (8)
- # reagent (7)
- # reitit (1)
- # shadow-cljs (27)
- # spacemacs (31)
- # sql (2)
- # tools-deps (3)
- # vim (1)
- # xtdb (12)
Any re-frame-10-x users know if you can increase the "Event History window" size? i'm currently increasing the size via the dom 😕 i can't seem to drag it, maybe i'm just not putting my heart into it though.
Is there a functional difference between creating a subscription on a parent component, who derefs it, then passing the ref to the child (or a granchild) who also derefs it VS creating two subscriptions on both the parent and the child who then both deref it? Or maybe it's cleaner to have the parent deref it then pass just the value, unless the child needs the ref... for some uncommon reason.
I feel like i want to prefer subscriptions because it makes it more clear where the data is coming from.
As where derefing at higher up in the tree then passing it down several nodes can lead to confusion about how the data relates to other data in the system.
If it's the same sub vector, then it'll be the same reaction - regardless of how many times you call subscribe
.
Relying less on subscriptions makes components more reusable, unless you add some convention to your subscription usage, like some special context.
good point. Yea, that's exactly the trade off. I suppose i see a lot of components that can't possible be re-used easily anyway.
This is a difference: https://github.com/day8/re-frame/issues/553 It rarely comes up though.