This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-10
Channels
- # announcements (16)
- # asami (7)
- # aws (5)
- # beginners (46)
- # calva (47)
- # clj-kondo (3)
- # cljdoc (23)
- # clojure (70)
- # clojure-germany (1)
- # clojurescript (6)
- # community-development (2)
- # datomic (3)
- # emacs (14)
- # exercism (5)
- # hyperfiddle (4)
- # jobs (1)
- # kaocha (9)
- # lsp (13)
- # malli (6)
- # membrane (11)
- # off-topic (22)
- # pedestal (4)
- # portal (19)
- # quil (3)
- # reagent (8)
- # remote-jobs (1)
- # shadow-cljs (48)
- # spacemacs (5)
Hi, is there a way to make an normal atom (or, in my case, an IDeref thing) behave like a r/atom? Specifically, I want to try an experiment with Javelin and reagent
I believe you can use r/cursor but not sure if that's a blessed way to use it. There's also make-reaction and r/wrap.
I don't think these will work - reading the docs, they all expect you to deref a r/atom at some moment...
Also, I'm having a stack overflow error when I try to render a [:div "lots" "of" "elements" "here"...], is that expected?
It's definitely possible to render many thousands of elements in a div. sounds like something else is going on, but try to repro in isolation.
Thousands of elements work. Thousands of strings is where I'm having trouble. I'll send an example tomorrow :)
Yeah, this fails:
(reagent.dom/render (vec (cons :div (map str (range 80000))))
(js/document.querySelector "#result"))
I could not make it work with thousands of hiccup elements instead of a single string, nor by manually creating a react component...