Commit 95880b1
committed
Reset data-table paging when panel collapses
Reset the visible row count to the sample size whenever the data-summary panel collapses to avoid re-rendering large row sets on reopen. Added useEffect hooks in AccessibleDataTable and NetworkAccessibleDataTable to reset visibleCount when isExpanded becomes false, and removed redundant setVisibleCount calls from dismiss. Added a test to verify paging resets after collapsing and reopened. Also fixed a docs comment ("sales" -> "revenue").1 parent c6b9c39 commit 95880b1
3 files changed
Lines changed: 28 additions & 3 deletions
File tree
- docs/src/pages/features
- src/components/stream
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
214 | 226 | | |
215 | 227 | | |
216 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
416 | 423 | | |
417 | 424 | | |
418 | 425 | | |
| |||
463 | 470 | | |
464 | 471 | | |
465 | 472 | | |
466 | | - | |
| 473 | + | |
467 | 474 | | |
468 | 475 | | |
469 | 476 | | |
| |||
526 | 533 | | |
527 | 534 | | |
528 | 535 | | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
529 | 542 | | |
530 | 543 | | |
531 | 544 | | |
| |||
629 | 642 | | |
630 | 643 | | |
631 | 644 | | |
632 | | - | |
| 645 | + | |
633 | 646 | | |
634 | 647 | | |
635 | 648 | | |
| |||
0 commit comments