This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-05
Channels
- # announcements (4)
- # beginners (21)
- # calva (3)
- # clj-http (3)
- # clj-kondo (10)
- # clojars (5)
- # clojure (4)
- # clojure-europe (5)
- # clojurescript (71)
- # datomic (3)
- # fulcro (18)
- # helix (5)
- # introduce-yourself (2)
- # missionary (1)
- # off-topic (19)
- # polylith (21)
- # reagent (3)
- # shadow-cljs (28)
- # tools-deps (6)
- # xtdb (30)
I’ve been playing with helix for the last few days and I’m wondering if I’m missing something when it comes to performance and prop passing. I’m seeing re-renders happening on a list even when using memoization.
If I’m passing clojure maps and functions (wrapped in use-callback hook) via props, should I expect a render only if changed?
For comparison, this same setup does optimize rendering if I run reagent.
Also, I’ve noticed that if I have a recursive call to a defnc
that uses wrap memo, inspecting react tools component tab only tags the first call to the defnc. If I fully qualify the call to the defnc
it then adds the memo tag to the profiler.
Some quick vids to help explain: https://www.loom.com/share/5813c34f828a45bd844dd492f51655a9
Issue with recursive call: https://www.loom.com/share/dbd6c7cf23e743af9fba837353eba3a9
Link to the repo: https://github.com/brancusi/test-helix