This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-16
Channels
- # adventofcode (36)
- # announcements (30)
- # babashka (1)
- # beginners (161)
- # boot-dev (2)
- # bristol-clojurians (3)
- # clj-kondo (10)
- # clojure (125)
- # clojure-europe (10)
- # clojure-italy (4)
- # clojure-nl (7)
- # clojure-spec (1)
- # clojure-uk (26)
- # clojuredesign-podcast (3)
- # clojurescript (13)
- # core-async (5)
- # cryogen (3)
- # cursive (134)
- # data-science (8)
- # datascript (3)
- # datomic (32)
- # fulcro (24)
- # graalvm (2)
- # joker (5)
- # leiningen (5)
- # malli (18)
- # off-topic (14)
- # pathom (4)
- # re-frame (3)
- # reagent (11)
- # remote-jobs (3)
- # rewrite-clj (8)
- # shadow-cljs (47)
- # spacemacs (3)
- # sql (12)
- # vim (6)
I don’t see how it is useful in general
how is the easiest to convert ClojureScript mapt to JSON? Or to say any Clojure data object ?
Is clj->js
lazy? I’ve got code that doesn’t work when calling clj->js
, but does work if I print out the result to the console, as an intermediate debugging step.
(I’m trying to set default values on a multi-select in re-frame, and if I just use clj->js
on the default values, they’re not pre-selected like they should be when the component first renders)
@manutter51 It doesn’t seem as though it is http://cljs.github.io/api/cljs.core/clj-GTjs Have you tried using the #js literal?
I don’t think I can use that? I’m populating the options from dynamic values coming back from the server.
It’s weird. It doesn’t happen all the time, but then if I put in the pprint
it seems like it never happens, which makes it hard to debug.