This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-04
Channels
- # architecture (5)
- # aws (11)
- # aws-lambda (1)
- # beginners (108)
- # boot (11)
- # cider (37)
- # clara (19)
- # cljsrn (72)
- # clojure (170)
- # clojure-austin (2)
- # clojure-dev (1)
- # clojure-dusseldorf (2)
- # clojure-italy (1)
- # clojure-spec (41)
- # clojure-uk (24)
- # clojurescript (113)
- # component (2)
- # core-async (29)
- # cursive (9)
- # data-science (5)
- # datomic (72)
- # docs (23)
- # duct (61)
- # editors (1)
- # emacs (1)
- # events (5)
- # fulcro (77)
- # graphql (2)
- # hoplon (4)
- # jobs (3)
- # jobs-discuss (16)
- # leiningen (5)
- # off-topic (94)
- # onyx (37)
- # precept (5)
- # re-frame (17)
- # reagent (11)
- # shadow-cljs (18)
- # spacemacs (107)
- # specter (3)
- # unrepl (64)
- # yada (1)
anyone using clojurescript see a warning that .querySelector cannot be resolved? been looking all over and can't find much about it.
@cfleming it works! thanks
@bthesorceror probably you have an error in the syntax, this is working example to use queryselector,
(defn get-radio-value
[name]
(.-value (.querySelector js/document (str "input[name=\"" name "\"]:checked"))))
@bthesorceror I misread, I have the same warning, not sure if it can be resolved, somehow intellij would need to be aware of native javascript.
are there any tricks to appropriately indent reader conditionals? formatting with ctrl + alt + l produces some odd spacing and also forces values onto new lines:
(ns imcljs.internal.utils
#?(:cljs (:require-macros [cljs.core.async.macros :refer [go go-loop]]))
(:require [clojure.string :refer [split]]
#?(:cljs [cljs.core.async :as a :refer [<! >! chan]]
:clj
[clojure.core.async :as a :refer [<! >! go go-loop chan]])
#?(:clj
[clojure.data.codec.base64 :as b64])))
https://clojure.github.io/clojure/clojure.inspector-api.html this seems to work