This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-20
Channels
- # aws (1)
- # babashka (68)
- # beginners (68)
- # braveandtrue (6)
- # calva (4)
- # cider (10)
- # clj-kondo (26)
- # clojure (76)
- # clojure-dev (18)
- # clojure-europe (1)
- # clojure-norway (25)
- # clojure-spec (8)
- # clojure-sweden (7)
- # clojure-uk (3)
- # clojuredesign-podcast (1)
- # clojurescript (11)
- # conjure (29)
- # cursive (31)
- # datomic (29)
- # emacs (12)
- # fulcro (29)
- # graphql (3)
- # helix (2)
- # hoplon (39)
- # hugsql (4)
- # malli (3)
- # off-topic (62)
- # pedestal (8)
- # re-frame (23)
- # reagent (14)
- # rewrite-clj (10)
- # shadow-cljs (18)
- # spacemacs (3)
- # sql (13)
- # xtdb (32)
I guess you would use s/cat a lot
I still donโt know how you can spec a JS object
is there any way for me to update a component every time a function runs through a loop? I have a function that conjs a string onto an atom on every loop and I want a component to update the displaying of the string incrementally
If by "in a loop" you actually mean loop
, then I don't think so because by hogging the only thread the browser's JS has, you prevent anything from re-rendering.
There's this but I have no idea if it can help here: http://reagent-project.github.io/docs/master/reagent.core.html#var-force-update
You can employ requestAnimationFrame
to split the iterations. This way, the browser will have a chance to render something between the iterations.
I looked up how to use requestAnimationFrame and I still don't quite understand how to use it. Could you elaborate?