This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-17
Channels
- # adventofcode (2)
- # beginners (153)
- # cider (14)
- # clara (9)
- # cljs-dev (8)
- # cljsjs (1)
- # cljsrn (4)
- # clojure (124)
- # clojure-dev (9)
- # clojure-france (18)
- # clojure-greece (22)
- # clojure-italy (11)
- # clojure-nlp (5)
- # clojure-russia (9)
- # clojure-spec (21)
- # clojure-uk (40)
- # clojurescript (82)
- # core-async (12)
- # cursive (3)
- # data-science (2)
- # datomic (225)
- # devcards (8)
- # docs (2)
- # duct (1)
- # emacs (18)
- # figwheel (2)
- # fulcro (117)
- # graphql (13)
- # hoplon (10)
- # jobs (7)
- # jobs-discuss (7)
- # keechma (8)
- # leiningen (4)
- # off-topic (16)
- # om (2)
- # om-next (3)
- # perun (11)
- # precept (4)
- # re-frame (24)
- # reagent (2)
- # remote-jobs (8)
- # ring (2)
- # ring-swagger (9)
- # rum (42)
- # shadow-cljs (8)
- # spacemacs (3)
- # specter (7)
- # uncomplicate (10)
- # unrepl (58)
- # yada (9)
@olivergeorge I use the following function
(defn stop-reframe-warning-on-handler-overwrites!
"When figwheel reloads, reframe warns on handler overwrites.
Stop this happening.
See "
[]
(let [warn (js/console.warn.bind js/console)
error (js/console.error.bind js/console)
;; need to prettify args otherwise they get
;; turned into strings in javascript rather
;; than clojurescript and keywords look very
;; strange
prettify-args (fn [args]
(string/join (map (fn [arg] (if (nil? arg) "*nil*" (str arg))) args)))]
(rf.log/set-loggers!
{:warn (fn [& args]
(cond
(re-find #"re-frame: overwriting" (first args)) nil
:else (warn (prettify-args args))))
:error (fn [& args]
(error (prettify-args args)))})))
which just stops those specific warnings
but I guess there might be a way of doing it in figwheel-bridge too