adobe / adobe/react-spectrum

useAsyncList returns cursor

Open
#3,977 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
15.9k
Forks
1.6k
Avg merge
3d 9m
Merged PRs (30d)
59

Description

`AsyncListData` contains cursor to support hiding "load more button" if there is no more items, such as

```javascript
let list = useAsyncList({});

// render
list.cursor ? Load more : null
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.