PrimeNG Table with Paginator and Lazy Loading Keeps Reverse Scrolling Pages until it finds Records
We have a PrimeNG table with Paginator and lazy loading. We’ve run into an issue where the user can set a very large number for the offset parameter through the url. If the offset parameter is larger than the index of the last record in the table, the default behaviour is for the paginator to keep scrolling the pages backwards until it finds a record. The problem is that it keeps hitting the backend unnecessarily, leading to potential performance issues.