mirror of
https://github.com/status-im/re-frame-10x.git
synced 2025-01-27 14:45:14 +00:00
Calculate level 2 subscriptions correctly again
This commit is contained in:
parent
11954d99b1
commit
f0ef165b21
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user