clojurescript 2026-07-23

Fable implemented this, and I thought it made a neat, small example of something trivial to do at the very specific intersection of both a re-frame reg-cofx and Clojure(Script)'s lazy sequences:

(rf/reg-cofx
 ::new-uuids
 ;; An endless supply of fresh ids, for handlers that may mint several
 ;; entries (import's id-collision path) - consumed lazily as needed.
 (fn [coeffects]
   (assoc coeffects :new-uuids (repeatedly random-uuid))))
It's so simple (within this specific ecosystem) it makes me wonder if this is an official example, or common pattern in other re-frame projects.

🅰️ 1