DEV Community

Discussion on: You probably don't need useLazyQuery 🙅‍♂️

Collapse
 
bryce profile image
Bryce Dorn

This is a contrived example but the query only fetches when the component is rendered, which in this case is when the input value matches pizza.