MCPcopy Index your code
hub / github.com/adobe/react-spectrum / loadMore

Function loadMore

packages/react-stately/src/data/useAsyncList.ts:356–368  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

354 dispatchFetch({type: 'loading'}, load);
355 },
356 loadMore() {
357 // Ignore if already loading more or if performing server side filtering.
358 if (
359 data.state === 'loading' ||
360 data.state === 'loadingMore' ||
361 data.state === 'filtering' ||
362 data.cursor == null
363 ) {
364 return;
365 }
366
367 dispatchFetch({type: 'loadingMore'}, load);
368 },
369 sort(sortDescriptor: SortDescriptor) {
370 dispatchFetch(
371 {type: 'sorting', sortDescriptor},

Callers

nothing calls this directly

Calls 1

dispatchFetchFunction · 0.85

Tested by

no test coverage detected