Shown below is a PR with changes to a small Angular status badge preview panel. After the update, users report that the screen sometimes stays empty after editing the code, and in other cases the preview text does not change even though the request has already returned new data.
standalone architecture and ChangeDetectionStrategy.OnPush.code field accepts the badge value and starts loading the preview.labeltoneloadingvip in the code field and wait for a successful response.bad.vip again.For reference, the service contract is as follows:
vip -> { label: "VIP", tone: "accent" }
basic -> { label: "Basic", tone: "neutral" }
bad -> server error
OnPush component, changes coming from the stream must reliably appear in the template.20.0.0, standalone components5.8.x7.8.xChangeDetectionStrategy.OnPushzone.js environmentReactiveFormsModule, FormControl<string>Observable<BadgePreview> or an error with a delay via delay(...)Use line comments to explain the problem, its impact, the fix and how to test it.