This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-21
Channels
- # announcements (9)
- # beginners (222)
- # boot (11)
- # calva (40)
- # cider (1)
- # clj-kondo (10)
- # cljs-dev (1)
- # cljsrn (8)
- # clojars (4)
- # clojure (50)
- # clojure-dev (4)
- # clojure-ecuador (1)
- # clojure-europe (4)
- # clojure-italy (3)
- # clojure-madison (2)
- # clojure-nl (26)
- # clojure-spec (86)
- # clojure-uk (34)
- # clojurescript (11)
- # clr (1)
- # cursive (46)
- # datomic (19)
- # emacs (4)
- # events (1)
- # fulcro (22)
- # graalvm (4)
- # graphql (2)
- # jobs-discuss (40)
- # leiningen (10)
- # luminus (6)
- # nrepl (7)
- # off-topic (18)
- # onyx (6)
- # overtone (1)
- # pedestal (2)
- # planck (1)
- # re-frame (5)
- # reagent (3)
- # reitit (8)
- # rewrite-clj (2)
- # shadow-cljs (139)
- # sql (4)
- # tools-deps (42)
👋 hi everyone. I asked a question over in #cljss that I'll cross-post here as it has more eyeballs 🙂
so, in order to use the Custom Elements API, I have to define a static get observedAttributes() {}
method on this javascript class. Does anyone know how that interop might be accomplished in cljs?
@thheller any ideas how one might set a static method on a "class"? (the attributeChangedCallback
on the custome elements spec you made here [https://gist.github.com/thheller/36332574918b974a3e4996efcb7457d2] wont work unless you also define a static get method that specifies which attributes to observe)
@idiomancy (js/Object.defineProperty component "observedAttributes" #js {:get (fn [] #js ["a", "b", "c"]))
should do it
Hey all, just started messing around with clojurescript, I have joker working in clojure but whenever I'm in a .cljs
file I get
Suspicious state from syntax checker clojurescript-joker: Flycheck checker clojurescript-joker returned non-zero exit code 1, but its output contained no errors: <file>:0:0: Exception: Nothing specified to load
Try installing a more recent version of clojurescript-joker, and please open a bug report if the issue persists in the latest release. Thanks!
in my minibufferjoker is in my path and flycheck has found it fine
Ah it appears it was the default
(ns hello-world.core
(:require))
and the blank :require
was making it unhappy.
Has anybody ever user chrome --headless in a docker container (i.e. https://hub.docker.com/r/zenika/alpine-chrome) ? The instructions from figwheel-main
work great on the Mac, but I am having trouble getting it to work on Linux or Docker.