_subject = new Subject<boolean | void>();
clientExamples = toSignal(
this._subject.pipe(
switchMap((bool) => {
if (bool) {
return of([]);
}
return this.clientExampleService.clientExampleControllerFindAll().pipe(
defaultIfEmpty([]),
tap((res) => {
if (res && res.length > 0)
this.form.patchValue({ count: res[0].count });
})
);
})
)
);