This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-17
Channels
- # beginners (10)
- # boot (9)
- # cider (1)
- # cljs-dev (191)
- # clojure (77)
- # clojure-russia (4)
- # clojure-serbia (10)
- # clojure-spec (19)
- # clojure-uk (4)
- # clojurescript (16)
- # core-async (9)
- # cursive (1)
- # data-science (1)
- # datomic (3)
- # emacs (42)
- # graphql (2)
- # hoplon (38)
- # jobs (1)
- # jobs-discuss (18)
- # luminus (3)
- # lumo (20)
- # off-topic (9)
- # om (51)
- # parinfer (3)
- # pedestal (8)
- # re-frame (4)
- # reagent (7)
- # rum (9)
- # sql (9)
- # untangled (81)
is having single rum/local
superior in any way (subscriptions management overhead, etc.) over having 2+ of them in the same component?
(rum/defcs Foo < (rum/local false ::bar?) (rum/local "" ::baz) [state] ...)
;;vs.
(rum/defcs Foo < (rum/local {:bar? false :baz ""} ::quux) [state] ...)
@misha rum/local creates one atom and corresponding watch, so if you use it twice you have two atoms and two watches
@misha not sure if that makes a significant real life difference but depends on your usage
I am aware of that, but is it actually expensive in any way, or it does not matter even on mobile browsers?
I guess you’ll need to try
but I doubt there are significant differences in the lower (1-10) amounts of rum/local mixins