mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-24 07:48:14 +00:00
Fix never-ending warn about not implementing IReactiveAtom
This commit is contained in:
parent
16585b2722
commit
5daafa7db4
@ -79,7 +79,7 @@
|
|||||||
(let [query-id (first-in-vector v)
|
(let [query-id (first-in-vector v)
|
||||||
handler-fn (get @qid->fn query-id)]
|
handler-fn (get @qid->fn query-id)]
|
||||||
(when ^boolean js/goog.DEBUG
|
(when ^boolean js/goog.DEBUG
|
||||||
(when-let [not-reactive (remove #(implements? reagent.ratom/IReactiveAtom %) dynv)]
|
(when-let [not-reactive (not-empty (remove #(implements? reagent.ratom/IReactiveAtom %) dynv))]
|
||||||
(console :warn "re-frame: your subscription's dynamic parameters that don't implement IReactiveAtom: " not-reactive)))
|
(console :warn "re-frame: your subscription's dynamic parameters that don't implement IReactiveAtom: " not-reactive)))
|
||||||
(if (nil? handler-fn)
|
(if (nil? handler-fn)
|
||||||
(console :error "re-frame: no subscription handler registered for: \"" query-id "\". Returning a nil subscription.")
|
(console :error "re-frame: no subscription handler registered for: \"" query-id "\". Returning a nil subscription.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user