Skip to content

[data grid] Cache not clearing for lazy loaded rows? #18767

@philipburleigh

Description

@philipburleigh

Steps to reproduce

I am a little uncertain whether or not I am misunderstanding the use of the datasource cache. I would suspect that I would have to refetch all rows, if I clear the datasource cache, however this is not the case in the example:

Steps:

  1. Open this link to live example
  2. Try to scroll and notice that the datasource cache is cleared every time each time five rows are scrolled, which in my understanding would require the relevant rows to be refetched. However, as you can see no rows are refetched.

I am not sure if this is a bug, or if I am misunderstanding the purpose of the datasource cache. Hope you can help.

Current behavior

Rows are not refetched when cache is cleared.

Expected behavior

Rows should be refetched when datasource cache is cleared

Context

No response

Your environment

See env in stackblitz

Search keywords: Data Grid, Lazy load, cache

Order ID: 115035

Metadata

Metadata

Assignees

Labels

scope: data gridChanges or issues related to the data grid productsupport: premium standardSupport request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/type: bugA bug or unintended behavior in the components.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions