This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-10
Channels
- # announcements (1)
- # beginners (2)
- # calva (41)
- # cider (3)
- # cljdoc (2)
- # cljs-dev (23)
- # clojure (94)
- # clojure-dev (23)
- # clojure-russia (5)
- # clojure-spec (9)
- # clojure-uk (85)
- # clojurescript (94)
- # code-reviews (1)
- # cursive (5)
- # datomic (1)
- # emacs (8)
- # figwheel (1)
- # figwheel-main (10)
- # fulcro (27)
- # graphql (11)
- # hyperfiddle (1)
- # jobs-discuss (10)
- # kaocha (3)
- # luminus (7)
- # lumo (1)
- # off-topic (85)
- # onyx (1)
- # pedestal (1)
- # re-frame (3)
- # shadow-cljs (21)
- # tools-deps (1)
- # yada (6)
hello everyone! may u help me... i'm trying to use re-frame-10x with shadow-cljs... after adding all dependencies, the compiler is showing some warnings.. could you help me please?
------ WARNING #1 --------------------------------------------------------------
File: mranderson048/re_frame/v0v10v2/re_frame/events.cljc:61:11
--------------------------------------------------------------------------------
58 | (if *handling*
59 | (console :error "re-frame: while handling \"" *handling* "\", dispatch-sync was called for \"" event-v "\". You can't call dispatch-sync within an event handler.")
60 | (binding [*handling* event-v]
61 | (trace/with-trace {:operation event-id
-----------------^--------------------------------------------------------------
Use of undeclared Var mranderson048.re-frame.v0v10v2.re-frame.events/java
--------------------------------------------------------------------------------
62 | :op-type kind
63 | :tags {:event event-v}}
64 | (interceptor/execute event-v interceptors)))))))
65 |
--------------------------------------------------------------------------------
------ WARNING #2 --------------------------------------------------------------
File: mranderson048/re_frame/v0v10v2/re_frame/subs.cljc:48:29
--------------------------------------------------------------------------------
45 | (let [cache-key [query-v dynv]]
46 | ;; when this reaction is no longer being used, remove it from the cache
47 | (add-on-dispose! r #(do (swap! query->reaction dissoc cache-key)
48 | (trace/with-trace {:operation (first-in-vector query-v)
-----------------------------------^--------------------------------------------
Use of undeclared Var mranderson048.re-frame.v0v10v2.re-frame.subs/java
--------------------------------------------------------------------------------
49 | :op-type :sub/dispose
50 | :tags {:query-v query-v
51 | :reaction (reagent-id r)}}
52 | nil)))
--------------------------------------------------------------------------------
------ WARNING #3 --------------------------------------------------------------
File: mranderson048/re_frame/v0v10v2/re_frame/subs.cljc:111:4
--------------------------------------------------------------------------------
108 | "
109 |
110 | ([query]
111 | (trace/with-trace {:operation (first-in-vector query)
----------^---------------------------------------------------------------------
Use of undeclared Var mranderson048.re-frame.v0v10v2.re-frame.subs/java
--------------------------------------------------------------------------------
112 | :op-type :sub/create
113 | :tags {:query-v query}}
114 | (if-let [cached (cache-lookup query)]
115 | (do
--------------------------------------------------------------------------------
why these warnings?
in shadow-cljs.end i've:
...
:dependencies [
[re-frame "0.10.5"]
[day8.re-frame/re-frame-10x "0.3.3-react16"]
...
I've found that the issue started as version 2.7 of shadow-cljs
after i've downgrade to 2.6.23, the issue is gone