Reference

@reckona/mreact-router/stream-list

4 public exports.

Function

FunctionstreamListfunction streamList<TInput, TItem>(items: readonly TInput[], options: StreamListOptions<TInput, TItem>): StreamListPendingBatch<TItem>[]Splits an input list into pending batches that load their items asynchronously.

Interface

InterfaceStreamListBatchinterface StreamListBatchRepresents one resolved batch emitted by `streamList()`.InterfaceStreamListOptionsinterface StreamListOptionsConfigures how a list is divided into asynchronous batches.InterfaceStreamListPendingBatchinterface StreamListPendingBatchRepresents one pending batch and its eventual loaded items.