日本語
@eightkk/vue-weave / vue-weave / useWindowedData
Function: useWindowedData()
useWindowedData<
T,L>(options):WindowedData<T,L>
Defined in: src/composables/useWindowedData.ts:96
Loads only what a view shows. The view (a time window and optionally row IDs) is aligned to chunks, missing cells are requested through load, superseded requests are aborted, late, aborted and out-of-order responses are ignored, items that overlapping requests return twice are kept once, failed cells keep the loaded data and wait for retry, and a new condition drops data that belongs to another one. A new condition is processed before the new view is checked, so an invalid view never keeps the old condition's requests or data; responses are matched by request ID and condition. Requests start when the owning component mounts (immediately outside a component), so nothing is requested during server rendering. All decisions are made by the pure core functions (setWindowedView, resolveWindowedRequest, ...), which can also be used without Vue.
Type Parameters
T
T
L
L = never
Parameters
options
UseWindowedDataOptions<T, L>
Returns
WindowedData<T, L>