Skip to content

Commit 11932da

Browse files
SamChou19815facebook-github-bot
authored andcommitted
Make variables prop in useLazyLoadQuery NoInfer to improve errors
Reviewed By: marcoww6 Differential Revision: D77707316 fbshipit-source-id: 24119da2fac7a5148883e87806cf4cba1d266a95
1 parent 68afcf3 commit 11932da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-relay/relay-hooks/useLazyLoadQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ hook useLazyLoadQuery<TVariables: Variables, TData>(
9393
/**
9494
* Object containing the variable values to fetch the query. These variables need to match GraphQL variables declared inside the query.
9595
*/
96-
variables: TVariables,
96+
variables: NoInfer<TVariables>,
9797
/**
9898
* options object
9999
*/

0 commit comments

Comments
 (0)