Closed darronschall closed 1 year ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
@kramlex check this please
@Alex009 check this pr please
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Fixes #208
Accessing
stateFlow.value
is not guaranteed to always return the same instance even when the underlying value is unchanged. This stateFlow behavior was incorrectly causing infiniteobjectWillChange
events due to the equality test always reportingfalse
even when the new value was, in fact, equal to the previous.The fix is to go through
isEqual(to:)
to compare the value contents to determine equality before firing off anobjectWillChange
event.