Description
The very opinionated Relay schema for graphQL has a very different pagination model where it only supports returning a cursor, and the ability to load more data before or after the cursor.
This model is very good for offering infinitely scrollable components, but that is not easily supported in Primer components at the moment. For example, it would be very nice to be able to make a <DataTable>
component infinitely scrollable and have props of the form.
interface NewPaginationProps {
loadNext?: ...,
hasNext: boolean
}
which could then be backed by calls to the Relay/Apollo GraphQL clients to fetch more data when the user scrolls to the bottom of the component, instead of relying on the traditional Page based approach (such as what is offered by the <Pagination>
component) which is not supported out of the Box for any Relay based graphQL server.
The propose new component form for issues is broken atm (opened #6188), so apologies if this is not the proper format.