You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable propagation of all value through useAsyncList methods (#2200)
* Enable propagation of all value through useAsyncList methods
* review fix
* making table story use list.selectedKeys
Co-authored-by: Daniel Lu <[email protected]>
Copy file name to clipboardExpand all lines: packages/@react-spectrum/table/stories/Table.stories.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1008,7 +1008,7 @@ function AsyncLoadingExample() {
1008
1008
return(
1009
1009
<div>
1010
1010
<ActionButtonmarginBottom={10}onPress={()=>list.remove(list.items[0].data.id)}>Remove first item</ActionButton>
1011
-
<TableViewaria-label="Top news from Reddit"selectionMode="multiple"width={1000}height={400}isQuietsortDescriptor={list.sortDescriptor}onSortChange={list.sort}>
1011
+
<TableViewaria-label="Top news from Reddit"selectionMode="multiple"width={1000}height={400}isQuietsortDescriptor={list.sortDescriptor}onSortChange={list.sort}selectedKeys={list.selectedKeys}onSelectionChange={list.setSelectedKeys}>
0 commit comments