Skip to content

[BUG] GridVirtuoso - endReached never fires again after filtering items #1242

@schroda

Description

@schroda

Describe the bug

Using the GridVirtuoso, endReached will never fire again in case the item count at the time endReached was fired and the new item count - after e.g. requesting filtered items - are the same.

Example:

  1. endReached fired at item count 20
  2. causes load of more items (=> item count 40)
  3. filter items which causes item count to change to 20 (with more pages available)
  4. endReached does not fire again

Reproduction

https://codesandbox.io/p/sandbox/virtuoso-grid-endreached-never-fires-again-24q6js

To Reproduce

Steps to reproduce the behavior:

  1. Let sandbox render (=> item count: 40 - item count on end reached fired: 20)
  2. Click on "Enable filter" (=> item count : 20 - item count on end reached fired: 20)
  3. endReached does not fire again

Expected behavior

endReached should get fired again to be able to load more pages.

Screenshots

/

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Edge v136.0.3240.64

Additional context

/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions