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

Prevent duplicate onCompleted calls during query execution #3461

Merged
merged 1 commit into from Sep 6, 2019

Conversation

hwillson
Copy link
Member

@hwillson hwillson commented Sep 6, 2019

This PR tweaks the dependencies that are watched to decide if afterExecute should be called (which triggers onCompleted), in useQuery. This helps prevent extra and un-necessary repeated calls to onCompleted, during a single query request-response cycle.

This commit tweaks the dependencies that are watched to decide
if `afterExecute` should be called (which triggers `onCompleted`),
in `useQuery`. This helps prevent extra and un-necessary repeated
calls to `onCompleted`, during a single query request-response
cycle.
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.

None yet

1 participant