This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-18
Channels
- # announcements (4)
- # babashka (2)
- # beginners (72)
- # calva (2)
- # cider (18)
- # clj-kondo (30)
- # cljs-dev (2)
- # clojure (106)
- # clojure-austin (2)
- # clojure-europe (17)
- # clojure-italy (6)
- # clojure-nl (4)
- # clojure-uk (109)
- # clojurescript (31)
- # cursive (6)
- # data-science (2)
- # datomic (30)
- # events (1)
- # fulcro (20)
- # graphql (4)
- # jobs (2)
- # joker (8)
- # kaocha (2)
- # meander (31)
- # off-topic (1)
- # pathom (53)
- # re-frame (22)
- # reitit (1)
- # shadow-cljs (26)
- # specter (2)
- # sql (20)
- # testing (2)
- # tools-deps (2)
- # tree-sitter (1)
- # xtdb (20)
- # yada (6)
I have a dimmer that covers the whole app. I’d like to run the transaction to activate or deactivate it without rerendering all of my components… is that possible?
Going (`transact! this` will rerender the current component if I understand this correctly.
@roklenarcic depends on which renderer you pick. keyframe-render2 has an only-refresh option, that will let you target components by ident
should I bother with ident optimized rendered if UI isn’t large?
short answer no
IMO ident optimized render is a pre-optimization
it’s the older way of doing things and try to always be fast at the expense of requiring follow-on reads which can cause tons of confusion
keyframe-render2 will work as you expect and you can optimize specific portions of the app as you see fit when you need to
if you even need to
i’d probably even use keyframe-render2 for large UIs and just optimize the hotspots
but it’s situational
ok thx for the help
@roklenarcic one other thing: you might consider setting :shouldComponentUpdate
to true on components near the root. The cost of props comparisons can easily outweigh the React diff, and the checks at the top basically just waste CPU in order to say “yes”
on unrelated note, I’ve been using the fulcro semantic-ui library. I haven’t been able to use the as
attribute correctly. Using :as "Segment"
produces the confusing error Warning: The tag <Segment> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.