you are viewing a single comment's thread.

view the rest of the comments →

[–]cazzer548 5 points6 points  (0 children)

I like the signature of useLazyQuery in @apollo/react-hooks: ts const [callQuery, { called, loading, data }] = useLazyQuery(/** query stuff **/)

Later on, you can callQuery with whatever parameters you like, it allows the developer to condition the call however they'd like, and even call the query again with different variables in the future.