Virtual scroll: weird behaviour when data is set to empty #16775
Labels
area: cdk/scrolling
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
What are you trying to do?
I have a virtual scroll coupled to a paginated request.
At some point, the user may need to refresh the list.
the new result of the query may be empty so I am setting the data to empty.
What troubleshooting steps have you tried?
The virtual scroll show only the first page after refresh
Reproduction
We can only help if we can reproduce the problem ourselves.
I tried to make a minimal example
https://stackblitz.com/edit/angular-ehqgvp-b5qa5x?file=app/cdk-virtual-scroll-data-source-example.ts
Steps to reproduce:
Environment
The text was updated successfully, but these errors were encountered: