Skip to content

Commit

Permalink
Add fix missing return value for prefetchable pagination
Browse files Browse the repository at this point in the history
Reviewed By: lynnshaoyu

Differential Revision: D65697416

fbshipit-source-id: ce2eacb69dad01b9efd1f4f56b41cb6c1c68ad71
  • Loading branch information
tyao1 authored and facebook-github-bot committed Nov 13, 2024
1 parent 7e258ca commit 8a501be
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ module.exports = FriendsList;

Object containing the following properties:

* `edges`: The edges to use. This provides a filtered list of edges in the connection that excludes the buffer. Do not use the connection edges from `data` to render otherwise the hook will not work correctly.
* `data`: Object that contains data which has been read out from the Relay store; the object matches the shape of specified fragment.
* The Flow type for data will also match this shape, and contain types derived from the GraphQL Schema.
* `isLoadingNext`: Boolean value which indicates if a pagination request for the *next* items in the connection is currently in flight, including any incremental data payloads. The value stays `false` if the hook is automatically prefetching to fill the buffer, and the code hasn't asked for more items.
Expand Down

0 comments on commit 8a501be

Please sign in to comment.