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)
|
||||
handler-fn (get @qid->fn query-id)]
|
||||
(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)))
|
||||
(if (nil? handler-fn)
|
||||
(console :error "re-frame: no subscription handler registered for: \"" query-id "\". Returning a nil subscription.")
|
||||
|
|
Loading…
Reference in New Issue