Skip to content

Commit

Permalink
Merge pull request #5132 from raibima/patch-1
Browse files Browse the repository at this point in the history
useQuery --> useLazyQuery
  • Loading branch information
hwillson committed Aug 6, 2019
2 parents 7ac6694 + 5d1b33e commit 450ffc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/api/react-hooks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const GET_GREETING = gql`
`;

function Hello() {
const [loadGreeting, { called, loading, data } = useQuery(
const [loadGreeting, { called, loading, data } = useLazyQuery(
GET_GREETING,
{ variables: { language: "english" } }
);
Expand Down

0 comments on commit 450ffc5

Please sign in to comment.