rum icon indicating copy to clipboard operation
rum copied to clipboard

ClojureScript >=1.11.51 seems to break Rum

Open yenda opened this issue 3 years ago • 3 comments

There was a previous issue opened https://github.com/tonsky/rum/issues/253

Using the following snippet taken for one of the examples and simplified:

(rum/defc value < rum/reactive
  [*ref]
  [:code (pr-str *ref #_(rum/react *ref))])

(rum/defc inputs2 []
  (let [*ref (atom 1)]
    [:dl
     [:dt (value *ref)]]))

*ref is printed as #js {"0" #object[cljs.core.Atom {:val 1}]}

in previous versions, it would be #object[cljs.core.Atom {:val 1}]

yenda avatar Sep 16 '22 12:09 yenda

Is it broken in ClojureScript 1.11.60 still?

tonsky avatar Sep 16 '22 20:09 tonsky

Yes

On Fri, 16 Sep 2022, 22:26 Nikita Prokopov, @.***> wrote:

Is it broken in ClojureScript 1.11.60 still?

— Reply to this email directly, view it on GitHub https://github.com/tonsky/rum/issues/255#issuecomment-1249781500, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJAMKLP66YVNVMPO4TLXEDV6TJXBANCNFSM6AAAAAAQOJCYMM . You are receiving this because you authored the thread.Message ID: @.***>

yenda avatar Sep 17 '22 05:09 yenda

Prints #object[cljs.core.Atom {:val 1}] for me on 1.11.60

tonsky avatar Sep 17 '22 23:09 tonsky