w3ui icon indicating copy to clipboard operation
w3ui copied to clipboard

add headless infinite scroll component to `@w3ui/react-uploads-list`

Open travis opened this issue 3 years ago • 1 comments

it would be nice to have a headless component that used reload and next from the UploadsListProvider to make it easy for developers to implement an infinite scrolling uploads list.

I think it would look something like:

function SimpleInfiniteScroll(){
  return (
    <UploadsList>
      <InfiniteScrollList/>
    </UploadsList>
  )
}

function Upload({dataCID, carCID, uploadedAt, uploaderDID}){
  return (
    <div>
      {dataCID} was uploaded at {uploadedAt}
    </div>
  )
}

function SimpleInfiniteScroll(){
  return (
    <UploadsList>
      <InfiniteScrollList itemComponent={Upload}/>
    </UploadsList>
  )
}

travis avatar Dec 06 '22 23:12 travis

I've assigned this to myself but happy to have someone else take it, just ping me here to talk about it first.

travis avatar Dec 06 '22 23:12 travis