Commit 6f48248
committed
fix: skip scroll-based fetch effect in virtualized branch list path
When shouldVirtualizeBranchList is true, branchListScrollElementRef stays
null because setBranchListRef is only attached to the non-virtualized
ComboboxList. The branches.length effect would call maybeFetchNextBranchPage
which bails out immediately due to the null scroll element.
Guard the effect to skip when virtualized, since the LegendList onEndReached
callback already handles infinite loading in that path, and with 40+ items
the visible area is always filled.1 parent 64275d4 commit 6f48248
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
463 | 464 | | |
464 | | - | |
| 465 | + | |
465 | 466 | | |
466 | 467 | | |
467 | 468 | | |
| |||
0 commit comments