Skip to content

Instantly share code, notes, and snippets.

@petterik
Created September 15, 2016 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petterik/d03efa03bc73c216b93e316562d982a5 to your computer and use it in GitHub Desktop.
Save petterik/d03efa03bc73c216b93e316562d982a5 to your computer and use it in GitHub Desktop.
diff --git a/src/main/om/next.cljc b/src/main/om/next.cljc
index ff19d99..3ea9682 100644
--- a/src/main/om/next.cljc
+++ b/src/main/om/next.cljc
@@ -2517,10 +2517,10 @@
root (:root @state)]
#?(:cljs
(doseq [c ((:optimize config) cs)]
- (let [props-change? (> (p/basis-t this) (t c))]
+ (let [props-change? (and (iquery? c) (> (p/basis-t this) (t c)))]
(when (mounted? c)
(let [computed (get-computed (props c))
- next-raw-props (ui->props env c)
+ next-raw-props (if (iquery? c) (ui->props env c) (props c))
next-props (om.next/computed next-raw-props computed)]
(when (and (exists? (.-componentWillReceiveProps c))
(iquery? root)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment