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

Better support for multiple useLazyQuery execution function calls #3453

Merged
merged 3 commits into from
Sep 3, 2019

Commits on Sep 3, 2019

  1. Better support for multiple useLazyQuery execution function calls

    Before this commit, calling a `useLazyQuery` exection function
    multiple times in a row, when using a fetch policy of
    `network-only`, lead to unexpected results. Only the first network
    request was submitted as Apollo Client was blocking subsequent
    requests, since the query, fetch policy and variables remained
    the same. This commmit adds additional cleanup to the
    `useLazyQuery` exection function, such that each call will start
    a new `ObservableQuery` instance. This means each query fired
    by the `useLazyQuery` execution function is treated as a fully
    new query.
    
    Fixes #3355.
    hwillson committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    23add8f View commit details
    Browse the repository at this point in the history
  2. Changelog update

    hwillson committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    1437a83 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8191981 View commit details
    Browse the repository at this point in the history