This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-16
Channels
- # ai (5)
- # announcements (47)
- # aws (11)
- # babashka (20)
- # beginners (85)
- # biff (1)
- # calva (72)
- # cider (9)
- # clj-kondo (37)
- # cljfx (9)
- # cljs-dev (1)
- # clojars (2)
- # clojure (61)
- # clojure-berlin (2)
- # clojure-europe (189)
- # clojure-nl (1)
- # clojure-norway (17)
- # clojure-uk (2)
- # clojurescript (51)
- # conjure (3)
- # cursive (4)
- # data-science (6)
- # datomic (6)
- # events (5)
- # fulcro (16)
- # gratitude (9)
- # holy-lambda (9)
- # introduce-yourself (6)
- # lsp (13)
- # malli (8)
- # membrane (2)
- # off-topic (47)
- # pedestal (11)
- # re-frame (15)
- # reitit (1)
- # releases (2)
- # rewrite-clj (6)
- # rum (4)
- # shadow-cljs (2)
- # tools-deps (3)
- # xtdb (25)
- # yada (13)
Hi! I guess I'm doing something wrong but I can't figure out what I'm trying this minimal example from the repo:
(rum/defc value < rum/reactive
[*ref]
[:code (pr-str *ref #_(rum/react *ref))])
(rum/defc inputs2 []
(let [*ref (atom 1)]
[:dl
[:dt (value *ref)]]))
but *ref is printed as #js {"0" #object[cljs.core.Atom {:val 1}]}
so when I try to call rum/react it can't deref since the atom is actually nested in that js array.
I don't get what I'm missing :thinking_face:To me it seems like it should work... maybe a problem of incompatible versions of cljs and rum?
thanks, indeed going back to a previous version of shadow-cljs fixes it
1.11.50