WarUI

Recycling-aware custom cell renderer lifecycle

GRID-A06-F05P1baselinePlanned

Custom cell renderers receive explicit mount, update and unmount hooks, so recycled cells can patch content instead of rebuilding it. Renderers can also declare themselves non-recyclable. This prevents state bleeding between rows when custom components are reused.

Planned. This page shows the specification from issue #183. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

50,000 rows with a custom progress-bar renderer and a log pane that counts mount, update and unmount calls.

Expected behavior

When recyclable, scrolling mostly triggers update calls. When non-recyclable, scrolling triggers mount and unmount pairs. The buggy renderer demo visibly shows a stale value, and a callout explains the fix.

Planned API surface

columns[].cellRenderercellRenderer.mountcellRenderer.updatecellRenderer.unmountcellRenderer.recyclable

Acceptance criteria

  • update receives the new row data, row index and column, plus the previous row id. (pending)
  • unmount is called exactly once for every mount call, including on grid destroy. (pending)
  • Renderers with recyclable=false are never reused across rows. (pending)
  • Exceptions thrown in a renderer are isolated to the cell and reported via onRenderError. (pending)