Closed davidnurkkala closed 1 year ago
Had a problem where I was trying to detect state change by using an array of results returned by setter functions. Essentially,
if Sift.Array.reduce(results :: {boolean}, function(accumulator, changed) return accumulator or changed end, false) then -- something changed end
Found out that it assumed the initial value to not be a truthy value. Changed it to compare directly to nil instead.
Merged into main
Had a problem where I was trying to detect state change by using an array of results returned by setter functions. Essentially,
Found out that it assumed the initial value to not be a truthy value. Changed it to compare directly to nil instead.