Skip to content

Commit

Permalink
fix(addon-mobile): fix for pulling$ stream
Browse files Browse the repository at this point in the history
  • Loading branch information
nezar-khamidekh committed Nov 7, 2024
1 parent 837f429 commit b3218e5
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import type {ElementRef} from '@angular/core';
import {inject, Injectable} from '@angular/core';
import {tuiScrollFrom, tuiTypedFromEvent} from '@taiga-ui/cdk/observables';
import {
tuiScrollFrom,
tuiTypedFromEvent,
tuiZonefreeScheduler,
tuiZoneOptimized,
} from '@taiga-ui/cdk/observables';
import {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';
import {TUI_SCROLL_REF} from '@taiga-ui/core/tokens';
import {
debounceTime,
distinctUntilChanged,
EMPTY,
endWith,
Expand Down Expand Up @@ -78,7 +84,9 @@ export class TuiPullToRefreshService extends Observable<number> {
startWith(0),
),
),
debounceTime(0, tuiZonefreeScheduler()),
distinctUntilChanged(),
tuiZoneOptimized(),
share(),
);

Expand Down

0 comments on commit b3218e5

Please sign in to comment.