Skip to content

fix(vtable): avoid loading lazy data in custom render sizing - #5266

Merged
fangsmile merged 4 commits into
developfrom
fix/issue-4964-custom-render-async-value
Aug 5, 2026
Merged

fix(vtable): avoid loading lazy data in custom render sizing#5266
fangsmile merged 4 commits into
developfrom
fix/issue-4964-custom-render-async-value

Conversation

@fangsmile

Copy link
Copy Markdown
Contributor

What\n- Avoid eagerly reading body cell value/dataValue while computing customRender/customLayout auto size for lazy ListTable dataSource\n- Keep normal cell rendering behavior unchanged so visible cells can still use args.value\n- Add a regression test and debug demo for issue #4964\n\n## Why\nWhen ListTable uses a lazy dataSource without records, auto width/height computation may traverse many body cells. Passing args.value eagerly to customRender triggers dataSource.get for every visited row, causing the lazy data source to load far more records than needed.\n\n## Verification\n- npm test -- tests/options/listTable-custom-render-async-dataSource.test.ts --runInBand\n- npm run compile\n- git diff --check\n\nCloses #4964

@github-actions github-actions Bot added the vtable label Aug 4, 2026
@github-actions github-actions Bot added the chore label Aug 4, 2026
@fangsmile
fangsmile merged commit baf519b into develop Aug 5, 2026
7 of 8 checks passed
@fangsmile
fangsmile deleted the fix/issue-4964-custom-render-async-value branch August 5, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant