Skip to content

Commit 7b6fa64

Browse files
committed
[alpha] [flow] Pass app-db to the :live? function
1 parent 04c376f commit 7b6fa64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/re_frame/flow/alpha.cljc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@
156156

157157
old-output (get-in old-db path)
158158

159-
bardo [(cond new? :new (live? id->old-live-in) :live :else :dead)
160-
(cond cleared? :cleared (live? id->live-in) :live :else :dead)]
159+
bardo [(cond new? :new (live? (assoc id->old-live-in :db old-db)) :live :else :dead)
160+
(cond cleared? :cleared (live? (assoc id->live-in :db db)) :live :else :dead)]
161161

162162
new-db (case bardo
163163
[:live :live] (cond-> db dirty? (assoc-in path (output id->in id->old-in old-output)))

0 commit comments

Comments
 (0)