Skip to content

Commit 16fa60f

Browse files
committed
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.
1 parent 2b3e702 commit 16fa60f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/om/next.cljc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,9 +1314,11 @@
13141314
(swap! st update-in [:om.next/queries (or c root)] merge
13151315
(merge (when query {:query query}) (when params {:params params})))
13161316
(when (and (not (nil? c)) (nil? reads))
1317-
(p/queue! r [c]))
1317+
(p/queue! r [c])
1318+
(schedule-render! r))
13181319
(when-not (nil? reads)
1319-
(p/queue! r reads))
1320+
(p/queue! r reads)
1321+
(schedule-render! r))
13201322
(p/reindex! r)
13211323
(let [rootq (if (not (nil? c))
13221324
(full-query c)

0 commit comments

Comments
 (0)