primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.15k stars 4.54k forks source link

Table: Lazy loading is called too many times #14099

Open scurk1415 opened 10 months ago

scurk1415 commented 10 months ago

Describe the bug

The onLazyLoad event gets triggered too many times, when the component is initialized.

It works correctly in primeng v16.6.0, but breaks in v16.7.0

Not really sure if a longer and more detailed description is needed. The reproduction steps are down below

Environment

All

Reproducer

https://stackblitz.com/run?file=src%2Fapp%2Fdemo%2Ftable-lazy-load-demo.ts,src%2Fservice%2Fcustomerservice.ts

Angular version

16.2.0

PrimeNG version

16.7.2

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to https://stackblitz.com/run?file=src%2Fapp%2Fdemo%2Ftable-lazy-load-demo.ts
  2. Open console and observe network tab
  3. The https://www.primefaces.org/data/customers endpoint gets called 3 times

Expected behavior

No response

Pijush-Beyond commented 9 months ago

same issue, need fix