This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-08
Channels
- # aleph (7)
- # announcements (12)
- # babashka (19)
- # beginners (4)
- # calva (29)
- # cider (20)
- # clj-kondo (20)
- # clojure (66)
- # clojure-austin (4)
- # clojure-europe (11)
- # clojure-nl (1)
- # clojure-norway (42)
- # clojure-uk (4)
- # clojuredesign-podcast (9)
- # conjure (1)
- # cursive (5)
- # datomic (42)
- # etaoin (4)
- # events (10)
- # garden (8)
- # graphql (1)
- # holy-lambda (7)
- # honeysql (3)
- # hyperfiddle (5)
- # missionary (11)
- # music (1)
- # off-topic (12)
- # practicalli (2)
- # re-frame (2)
- # reitit (6)
- # releases (2)
- # vim (2)
- # web-security (1)
- # xtdb (3)
What’s the semantics for a reactive loop
? It seems like each call to recur
generates a scope that remains active for as long as the loop itself remains mounted. Is this true?
yeah, see with-cycle if you don’t want a new frame per iteration. the debate is, consider a loop with a dom/div in the body. do you want a sequence of divs or do you want to reuse one div? there may be other aspects i’m not recalling atm
we have more design work to do here
what are you trying to do?
Good question, both might be valid for different use cases. In this case I’m looping through AI generation for different sections of a page, where each iteration waits for the AI to finish generating before triggering recursion. So in this particular case, I don’t need each recursion to be distinct.