Created
September 15, 2016 19:42
-
-
Save petterik/d03efa03bc73c216b93e316562d982a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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