Calculate level 2 subscriptions correctly again

This commit is contained in:
Daniel Compton 2018-02-09 21:06:47 +13:00
parent 11954d99b1
commit f0ef165b21
1 changed files with 3 additions and 6 deletions

View File

@ -162,12 +162,9 @@
(= :render (:op-type trace)))
(defn unchanged-l2-subscription? [sub]
(and
(= :re-run (:type sub))
(= 2 (:layer sub))
(and (contains? sub :previous-value)
(contains? sub :value)
(= (:previous-value sub) (:value sub)))))
(and (get-in sub [:sub/traits :unchanged?])
(not-any? #(= :sub/dispose %) (:order sub))
(= 2 (get sub :layer))))
(defn finish-run? [event]