From 16fa60ffa7028c71753d65cd07ee0bc5986b17c6 Mon Sep 17 00:00:00 2001 From: Brian Noguchi Date: Wed, 5 Apr 2017 16:08:09 -0700 Subject: [PATCH] Make sure to schedule-render! after queueing components or reads. Otherwise, this doesn't work when merged with om-860 because the devcards for om-860 also exposes a race condition with the overriding om/*raf* we define in this branch. --- src/main/om/next.cljc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/om/next.cljc b/src/main/om/next.cljc index d06f4e3d..943b1e88 100644 --- a/src/main/om/next.cljc +++ b/src/main/om/next.cljc @@ -1314,9 +1314,11 @@ (swap! st update-in [:om.next/queries (or c root)] merge (merge (when query {:query query}) (when params {:params params}))) (when (and (not (nil? c)) (nil? reads)) - (p/queue! r [c])) + (p/queue! r [c]) + (schedule-render! r)) (when-not (nil? reads) - (p/queue! r reads)) + (p/queue! r reads) + (schedule-render! r)) (p/reindex! r) (let [rootq (if (not (nil? c)) (full-query c)