shlomiassaf / ngrid

A angular grid for the enterprise
https://shlomiassaf.github.io/ngrid
MIT License
241 stars 40 forks source link

Infinite scroll keeps triggering data change when returning an empty array #125

Closed ronnetzer closed 3 years ago

ronnetzer commented 3 years ago

What is the expected behavior?

show the no data template

What is the current behavior?

flickering between no data and infinite scroll placeholder state

What are the steps to reproduce?

https://stackblitz.com/edit/pebula-ngrid-starter-qfxvjf You can see that here is being called endlessly. I've added a timer so the tab won't get stuck but in reality, I'm returning [] directly.

Which versions of Angular, CDK, Material, NGrid, OS, TypeScript, browsers are affected?

latest