lazy-render-virtual-scroll 1.7.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -32
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,25 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
High-performance virtual scrolling library with intelligent scroll detection, adaptive buffering, and multi-framework support.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+

|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
📊 Tested with 10,00,000 cards
|
|
11
|
-
⚡ Response Time: 3378ms → <100ms (33x faster)
|
|
12
|
-
🚀 Scroll: Smooth 60 FPS
|
|
13
|
-
💾 Memory: 99% reduction
|
|
14
|
-
📉 Data: 500MB → 25KB per request
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
**Backend Integration:**
|
|
18
|
-
- ✅ Cursor-based pagination
|
|
19
|
-
- ✅ Adaptive batch sizing (20-200 items)
|
|
20
|
-
- ✅ Network-aware prefetching
|
|
21
|
-
- ✅ Redis caching with TTL
|
|
22
|
-
|
|
23
|
-
---
|
|
7
|
+

|
|
24
8
|
|
|
25
9
|
## Installation
|
|
26
10
|
|
|
@@ -45,18 +29,14 @@ import { LazyList } from 'lazy-render-virtual-scroll';
|
|
|
45
29
|
|
|
46
30
|
### Enhanced Hooks
|
|
47
31
|
```tsx
|
|
48
|
-
import { useIntelligentScroll } from 'lazy-render-virtual-scroll';
|
|
32
|
+
import { useIntelligentScroll, useAdaptiveLoading, useSmartPagination } from 'lazy-render-virtual-scroll';
|
|
49
33
|
|
|
50
|
-
const { visibleRange, isLoading
|
|
51
|
-
itemHeight: 50,
|
|
52
|
-
viewportHeight: 400,
|
|
53
|
-
fetchMore
|
|
54
|
-
});
|
|
34
|
+
const { visibleRange, isLoading } = useIntelligentScroll({ itemHeight: 50, viewportHeight: 400, fetchMore });
|
|
55
35
|
```
|
|
56
36
|
|
|
57
37
|
### Advanced Components
|
|
58
38
|
```tsx
|
|
59
|
-
import { IntelligentLazyList, SmartInfiniteScroll } from 'lazy-render-virtual-scroll';
|
|
39
|
+
import { IntelligentLazyList, AdaptiveScrollView, SmartInfiniteScroll } from 'lazy-render-virtual-scroll';
|
|
60
40
|
```
|
|
61
41
|
|
|
62
42
|
## Features
|
|
@@ -71,13 +51,11 @@ import { IntelligentLazyList, SmartInfiniteScroll } from 'lazy-render-virtual-sc
|
|
|
71
51
|
|
|
72
52
|
## Performance
|
|
73
53
|
|
|
74
|
-
| Metric |
|
|
75
|
-
|
|
76
|
-
| 10K items render | 1800ms
|
|
77
|
-
|
|
|
78
|
-
|
|
|
79
|
-
| Data transfer | 500MB | 25KB | **20,000x less** |
|
|
80
|
-
| Scroll FPS | 30 FPS | 60 FPS | **2x smoother** |
|
|
54
|
+
| Metric | Improvement |
|
|
55
|
+
|--------|-------------|
|
|
56
|
+
| 10K items render | 1800ms → 45ms |
|
|
57
|
+
| Memory usage | 99% reduction |
|
|
58
|
+
| Scroll performance | Smooth 60 FPS |
|
|
81
59
|
|
|
82
60
|
## Documentation
|
|
83
61
|
|