Async Data Loading from a Promise
rowData can be supplied as a Promise or an async loader function. The grid manages the loading lifecycle itself: it enters the loading state, binds the result on resolve, and ignores stale responses when a newer request supersedes them. This removes common race-condition bugs in fetch-then-bind code.
Planned. This page shows the specification from issue #179. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A region selector set to 'EU', with a mock loader that applies a random latency of 300-2000ms.
Expected behavior
Each region change shows the loading state. If responses arrive out of order, only the latest request's rows are bound. Superseded requests receive an aborted signal, and the event log shows them as cancelled.
Planned API surface
rowData (Promise)rowDataLoader (signal => Promise)AbortSignalonRowDataLoadStartonRowDataLoadedonRowDataLoadErrorAcceptance criteria
- The loading overlay is shown from load start until settle (pending)
- A stale resolution never replaces newer data (pending)
- The superseded loader's AbortSignal is aborted (pending)
- onRowDataLoaded fires once per successful latest load (pending)
- Rejections route to the error state (see F06) (pending)