Skip to content

Commit a984616

Browse files
authored
fix issue #1878, added async to the sort function (#2658)
1 parent efa050d commit a984616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-stately/data/docs/useAsyncList.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ let list = useAsyncList({
133133
async load({signal}) {
134134
// Same load function as before
135135
},
136-
sort({items, sortDescriptor}) {
136+
async sort({items, sortDescriptor}) {
137137
return {
138138
items: items.sort((a, b) => {
139139
// Compare the items by the sorted column

0 commit comments

Comments
 (0)