An Angular 20 project uses a standalone component with ChangeDetectionStrategy.OnPush and signals. The application runs in Angular 20’s normal zoned mode, without SSR. Dependencies: @angular/core 20.x, @angular/common 20.x, @angular/forms 20.x, rxjs 7.8.x. After a small PR, the member search screen started behaving unstably.
Functional requirements for the screen:
trim();OnPush, without manual rerendering from outside;API service contract in this task:
searchMembers(query: string): Observable<Member[]>Member = { id: number; name: string; team: string }How to reproduce the behavior after the PR:
ann.Hide button.Assumptions:
Angular 20 standalone components, TypeScript 5.x, RxJS 7.8.x, ChangeDetectionStrategy.OnPush, standard zone.js configuration from Angular CLI/dev-server, browser execution only.
Use line comments to explain the problem, its impact, the fix and how to test it.