Apply suggestion from @vercel[bot]

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
pull/18525/head
Simon H 4 days ago committed by GitHub
parent 2f01cfb3c8
commit 0304b53219
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -530,8 +530,10 @@ export class Batch {
const mark = (value) => {
var reactions = value.reactions;
if (reactions === null) return;
// skip if value is derived and is not dirty
if ((value.f & DERIVED) !== 0 && (value.f & DIRTY) == 0) {
// skip if value is derived and is neither dirty nor maybe dirty. transitive
// deriveds (a derived depending on another derived) are only MAYBE_DIRTY, so
// we must continue traversing them to reach the effects that depend on them
if ((value.f & DERIVED) !== 0 && (value.f & (DIRTY | MAYBE_DIRTY)) === 0) {
return;
}

Loading…
Cancel
Save