From 087b1f2bd592b42abf4b7bc6e4abcb4ffa24416c Mon Sep 17 00:00:00 2001 From: Daniel Woelfel Date: Wed, 17 May 2023 10:25:10 -0700 Subject: [PATCH] Use same field name for pagination that compiler generates --- packages/react-relay/relay-hooks/useLoadMoreFunction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-relay/relay-hooks/useLoadMoreFunction.js b/packages/react-relay/relay-hooks/useLoadMoreFunction.js index acb04a6d58d35..97041843c3c7f 100644 --- a/packages/react-relay/relay-hooks/useLoadMoreFunction.js +++ b/packages/react-relay/relay-hooks/useLoadMoreFunction.js @@ -214,7 +214,7 @@ function useLoadMoreFunction( identifierValue, ); } - paginationVariables.id = identifierValue; + paginationVariables[identifierField] = identifierValue; } const paginationQuery = createOperationDescriptor(