The notification filter summary screen displays the current count of matching events and the text of the last update. After a recent behavior change, the screen has started to sometimes show stale data or fail to refresh when the input model changes.
NotificationSummaryView type and receives its model through configure(with:).identifier: StringenabledCount: IntlastUpdated: Date?localeIdentifier: StringlocaleIdentifier;lastUpdated == nil, show — instead of a date;identifier but different field values.@MainActor UI context, with no third-party dependencies.NotificationSummaryView.configure(with:) for model A with identifier = "filter-1", enabledCount = 2, lastUpdated = nil, localeIdentifier = "ru_RU".configure(with:) again for model B with the same identifier, but enabledCount = 5, lastUpdated with a non-nil value, and localeIdentifier = "en_US".B.B, not leftover data from A.localeIdentifier of the current model.— character.@MainActor UI types, deterministic mock publisher for model updatesUse line comments to explain the problem, its impact, the fix and how to test it.