diff --git a/npm/ng-packs/packages/core/src/lib/services/list.service.ts b/npm/ng-packs/packages/core/src/lib/services/list.service.ts index 0bd3e927ae..c77ba9cdb4 100644 --- a/npm/ng-packs/packages/core/src/lib/services/list.service.ts +++ b/npm/ng-packs/packages/core/src/lib/services/list.service.ts @@ -88,12 +88,11 @@ export class ListService implements OnDes get = () => { this.resetPageWhenUnchanged(); - this._query$.next(({ - filter: this._filter || undefined, - maxResultCount: this._maxResultCount, - skipCount: this._page * this._maxResultCount, - sorting: this._sortOrder ? `${this._sortKey} ${this._sortOrder}` : undefined, - } as any) as QueryParamsType); + this.next(); + }; + + getWithoutPageReset = () => { + this.next(); }; private delay: MonoTypeOperatorFunction; @@ -130,6 +129,15 @@ export class ListService implements OnDes this._skipCount = 0; } else this._skipCount = skipCount; } + + private next() { + this._query$.next(({ + filter: this._filter || undefined, + maxResultCount: this._maxResultCount, + skipCount: this._page * this._maxResultCount, + sorting: this._sortOrder ? `${this._sortKey} ${this._sortOrder}` : undefined, + } as any) as QueryParamsType); + } } export type QueryStreamCreatorCallback = (