Gathering detailed insights and metrics for react-window-dynamic-list
Gathering detailed insights and metrics for react-window-dynamic-list
Gathering detailed insights and metrics for react-window-dynamic-list
Gathering detailed insights and metrics for react-window-dynamic-list
react-viewport-list
📜 Virtualization for lists with dynamic item size
react-window-dynamic-size-list
Dynamically measured cells for React Window
react-dynamic-window
A React library for efficiently rendering large scrollable lists with dynamic heights
virtualize-it
This project provides virtualized list and grid components for efficient rendering of large datasets.
A naive approach to virtualizing a dynamically sized list
npm install react-window-dynamic-list
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (85.8%)
HTML (10.08%)
CSS (4.12%)
Total Downloads
130,515
Last Day
68
Last Week
541
Last Month
2,833
Last Year
29,354
49 Stars
120 Commits
9 Forks
2 Watchers
28 Branches
5 Contributors
Updated on Mar 13, 2024
Minified
Minified + Gzipped
Latest Version
2.4.2
Package Id
react-window-dynamic-list@2.4.2
Unpacked Size
53.88 kB
Size
11.28 kB
File Count
7
NPM Version
6.14.4
Node Version
10.19.0
Cumulative downloads
Total Downloads
Last Day
-28.4%
68
Compared to previous day
Last Week
-21.1%
541
Compared to previous week
Last Month
40.7%
2,833
Compared to previous month
Last Year
-13.5%
29,354
Compared to previous year
3
20
Made with the awesome create-react-library
react-window
?This library comes to partly solve the case of rendering dynamically sized items with react-window, for more information about the issue please read this thread. Before you overjoy please read the limitations of this approach down bellow :sleepy:
👉 check out dynamic list in action
:pencil2: Play with the demo in sandbox
1npm install --save react-window-dynamic-list
Yep. its that simple :satisfied:
The API is the same as VariableSizeList with some small changes and additions.
itemCount
you must pass data
(read more)itemSize
and estimatedItemSize
for you :sunglasses:Property | Type | Required? | Default | Description |
---|---|---|---|---|
data | Object[] | ✓ | All of the data that will be displayed in the list. Each object must contain an unique id field.For example: [{id: 1, ...}, {id: 2, ....} ] | |
cache | Object | ✓ | The cache object which the list will use for caching the calculated sizes. Check the example for how to create it. | |
lazyMeasurement | boolean | true | Whether the application should fill the cache in the background. Please note: After each cache clear the application will restart the lazy cache filling (For example after adding or removing an item) For more information read the caching section. | |
recalculateItemsOnResize | Object | { width: false, height: false } | Whether the list should recalculate the items size if its own size has changed. This value should not change from its initial one. Currently the feature is supported but far from perfect, therefore it is disabled by default. | |
measurementContainerElement | Function | ({style, children}) => ReactNode | A custom container element in which the elements will be rendered for measuring. Especially useful for changing the scrollbar width. You must pass the style prop to your element. | |
debug | boolean | false | Whether the measurement layer should be visible, useful for debugging a custom measurementContainerElement |
Just in time measurement with caching in the background.
The algorithm is divided into two main concepts:
We measure each item in the list by temporary rendering it with react-dom
in a different application.
For more information please read this great article.
In order for just in time measurements to be effective we need to cache the measurements. Currently there are two caching modes:
resetAfterIndex
function of VariableSizeList
.Your data doesn't change its size.
ajax
or images).Currently only supports vertical layout. (didn't have time to implement support for horizontal).
All of the styling regarding the items must be inline
or not affected by location in the DOM
.
Changes to the list's scrollbar, especially the width, should also effect the measurement container div. Since we pre render the items in order to measure them the size of the scrollbar is important in the pre rendered item as well. This can be achieved in the following ways:
measurementContainerElement
prop.MIT © gnir-work
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/13 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
102 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More