API REFERENCE

maxBlocksInCache

Maximum cached blocks in the infinite row model. Balances memory use against repeat queries.

What does this API do?

Maximum cached blocks in the infinite row model. Balances memory use against repeat queries.

Exact input and result types

typescript
maxBlocksInCache: number
ItemValue
JavaScript namemaxBlocksInCache
HTML attributemax-blocks-in-cache
Defaultundefined
Input typenumber

Usage flow

Set this on a property of the Grid element. In HTML, you can also use the max-blocks-in-cache attribute. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

Feature explanations and examples