Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Call onCompleted each time useLazyQuery executes #3497

Merged
merged 1 commit into from Sep 15, 2019
Merged

Conversation

hwillson
Copy link
Member

Make sure onCompleted is called each time a useLazyQuery based query completes, after the execution function is called.

Fixes #3488

Make sure `onCompleted` is called each time a `useLazyQuery` based
query completes, after the execution function is called.

Fixes #3488
@vilvaathibanpb
Copy link

@hwillson Can I know the exact reason for adding undefined to useEffect ?

hwillson added a commit that referenced this pull request Oct 15, 2019
often than necessary.

Fixes: #3505
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useLazyQuery / useQuery hook still isn't fired after fetching data from the cache
2 participants