const loading$ = fromEvent(form, 'submit').pipe( exhaustMap(() => { const data$ = fetchData().pipe(shareReplay(1));
const showLoading$ = of(true).pipe(
delay(+showLoadingAfterField.value),
tap(() => showLoading(true)),
);
const hideLoading$ = timer(+showLoadingForAtLeastField.value).pipe(first());