This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-04
Channels
- # announcements (42)
- # architecture (18)
- # aws (30)
- # beginners (119)
- # calva (1)
- # cider (3)
- # cljs-dev (15)
- # cljsrn (16)
- # clojure (80)
- # clojure-australia (3)
- # clojure-europe (11)
- # clojure-germany (2)
- # clojure-nl (7)
- # clojure-sanfrancisco (4)
- # clojure-spec (12)
- # clojure-taiwan (2)
- # clojure-uk (10)
- # clojurescript (22)
- # events (2)
- # fulcro (31)
- # ghostwheel (3)
- # jobs (1)
- # kaocha (1)
- # luminus (22)
- # meander (1)
- # off-topic (14)
- # pathom (5)
- # portal (10)
- # re-frame (12)
- # reitit (1)
- # shadow-cljs (19)
- # spacemacs (11)
- # tools-deps (34)
Are there any libraries or ideas for only performing effects (like backend calls) for Reagent components that are actually visible on the user’s screen? Maybe by utilizing `js/IntersectionObserver`? Maybe by not even loading the component using a library?
If I hold a symbol in cljs that maps to a namespaced var, is there a way to perform a lookup of the var at runtime?
CLJS doesn't have vars at runtime but you can get whatever would be in the var via (js/goog.getObjectByName "cljs.core.assoc")
or so
Does that work with optimizations? @U05224H0W
Awesome thanks!
Yeah, I tried this sort of stuff for https://github.com/tape-framework and settled with registering things and latter retrieval from the registry.
cool. Thanks for the pointers
Is there a way to compute requires using macro’s or reader macro’s at compile time? Or something similar?
yes! I think so!
Are there any libraries or ideas for only performing effects (like backend calls) for components that are actually visible on the user’s screen? Maybe by utilizing `js/IntersectionObserver`? Maybe by not even loading the component using a library?
Please try to avoid posting the same question in multiple channels, let alone multiple times in the same channel.
Oh oops I thought my connection was lost
And the question was not posted
but no solutions I see
nor on the internet specific to re-frame. then we roll our own 🙂
When in doubt, try ctrl+shift+r
(at least on Windows and Linux - MacOS may have some other shortcut) - it will refresh the desktop Slack app.
Ah I see