Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid with a lazy data provider can end up in an infinitie loop #8524

Closed
tomivirkki opened this issue Jan 16, 2025 · 0 comments · Fixed by #8525
Closed

Grid with a lazy data provider can end up in an infinitie loop #8524

tomivirkki opened this issue Jan 16, 2025 · 0 comments · Fixed by #8525
Assignees

Comments

@tomivirkki
Copy link
Member

Description

Grid with a lazy data provider can end up in an infinitie loop when expanded items are assigned after clearing the cache.

Expected outcome

Grid should not end up in an infinite loop

Minimal reproducible example

  1. Modify dev/grid.html so that the data provider callback is executed in a timeout
  2. Add a button which does the following:
grid.expandedItems = [{ name: '0' }];
grid.clearCache();

Steps to reproduce

Click the button on the dev page

Environment

Vaadin version(s): 24

Browsers

Issue is not browser related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant