Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2b85d37

Browse filesBrowse files
DrillableBitfacebook-github-bot
authored andcommitted
Add argument definitions to usePaginationFragment docs (#5015)
Summary: Add argument definitions to define the variables: - $count - $cursor Pull Request resolved: #5015 Reviewed By: monicatang Differential Revision: D76351657 Pulled By: evanyeung fbshipit-source-id: 9391ae6452cff400576b5c46ee4032ba325be6fb
1 parent 5cb92f4 commit 2b85d37
Copy full SHA for 2b85d37

2 files changed

+8Lines changed: 8 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎website/docs/api-reference/hooks/use-pagination-fragment.md‎

Copy file name to clipboardExpand all lines: website/docs/api-reference/hooks/use-pagination-fragment.md
+4Lines changed: 4 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ function FriendsList(props: Props) {
4040
} = usePaginationFragment(
4141
graphql`
4242
fragment FriendsListComponent_user on User
43+
@argumentDefinitions(
44+
count: { type: "Int", defaultValue: 5 }
45+
cursor: { type: "String" }
46+
)
4347
@refetchable(queryName: "FriendsListPaginationQuery") {
4448
name
4549
friends(first: $count, after: $cursor)
Collapse file

‎website/versioned_docs/version-v19.0.0/api-reference/hooks/use-pagination-fragment.md‎

Copy file name to clipboardExpand all lines: website/versioned_docs/version-v19.0.0/api-reference/hooks/use-pagination-fragment.md
+4Lines changed: 4 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ function FriendsList(props: Props) {
4040
} = usePaginationFragment(
4141
graphql`
4242
fragment FriendsListComponent_user on User
43+
@argumentDefinitions(
44+
count: { type: "Int", defaultValue: 5 }
45+
cursor: { type: "String" }
46+
)
4347
@refetchable(queryName: "FriendsListPaginationQuery") {
4448
name
4549
friends(first: $count, after: $cursor)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.