Merge pull request #186 from oliyh/master
Fix never-ending warn about not implementing IReactiveAtom
This commit is contained in:
commit
d9d02810a7
|
@ -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…
Reference in New Issue