Notes to SelfYenly

UseQuery vs. UseLazyQuery

  • useQuery hook is for when the query is done when the component is rendered
  • useLazyQuery hook1 is for when we want to make the query only as required.2

  1. Apollo Docs: useLazyQuery↩
  2. Apollo Docs: Executing queries manually↩