omcljs / om

ClojureScript interface to Facebook's React
6.66k stars 362 forks source link

Fix Logging in set-query! #865

Closed alexanderkiel closed 6 years ago

alexanderkiel commented 7 years ago

The logging code is this:

(glog/info l
  (str (when-let [ident (when (implements? Ident c)
                          (ident c (props c)))]
            (str (pr-str ident) " "))
       (when (reconciler? x) "reconciler ")
       (when query "changed query '" query ", ")
       (when params "changed params " params " ")
       (pr-str id)))

The problem is that when only returns the last form in when query and when params which results in missing logging parts.