WarUI

Lazy loading of children

GRID-A17-F06P0baselinePlanned

Loads a node's children on demand the first time it is expanded, using an async callback. The node shows a loading indicator while waiting and offers an error state with retry if the load fails. This keeps initial payloads small for large or server-backed hierarchies.

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

Live example

Only root folders are loaded. A simulated server responds in 800 ms.

Expected behavior

Expanding a node shows a spinner row, then the children appear. On failure, an inline error appears with a Retry action. Collapsing and re-expanding the node either uses the cache or refetches, depending on the policy.

Planned API surface

treeLazyLoadisRowExpandableloadChildren(row) => PromiseonChildrenLoadedonChildrenLoadErrorreloadChildrenchildrenCachePolicy

Acceptance criteria

  • loadChildren is called only once per node under the keep policy (pending)
  • isRowExpandable controls toggle visibility before any load (pending)
  • Concurrent expansion of the same node does not issue duplicate requests (pending)
  • An error state is shown and Retry re-invokes loadChildren (pending)
  • A load that returns zero children removes the toggle (pending)
  • A response that arrives after the node is collapsed is cached but does not force expansion (pending)