mirror of
https://github.com/wassname/talk.git
synced 2026-09-11 12:51:33 +08:00
Use pagination container
This commit is contained in:
@@ -280,6 +280,7 @@ async function retrieveConnection(
|
||||
edges,
|
||||
pageInfo: {
|
||||
hasNextPage,
|
||||
endCursor: (nodes.length && nodes[nodes.length - 1].created_at) || null,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ export interface Edge<T> {
|
||||
|
||||
export interface PageInfo {
|
||||
hasNextPage: boolean;
|
||||
endCursor: Cursor;
|
||||
}
|
||||
|
||||
export interface Connection<T> {
|
||||
|
||||
Reference in New Issue
Block a user