After a recent refactor, the draft summary panel has started behaving unstably. The user enters a draft code, starts loading, and can mark the result as urgent. You need to find the causes of the regressions in the changes.
ChangeDetectionStrategy.OnPush.Make urgent button must update the summary on screen immediately.Draft not found and must not keep data from the previous successful result.D-100 and click Load.Make urgent.missing and click Load again.For local verification, use the command:
npm test
Make urgent, the summary block should display Yes.missing, the successful summary from the previous code must not remain on the screen.22.14.020.0.0, standalone components5.8.27.8.1ng testChangeDetectionStrategy.OnPushzone.js enabled)DraftSummaryService.getSummary(code: string): Observable<DraftSummary>Use line comments to explain the problem, its impact, the fix and how to test it.