diff --git a/.changeset/odd-beers-perform.md b/.changeset/odd-beers-perform.md index edf4b5d803a..84266675835 100644 --- a/.changeset/odd-beers-perform.md +++ b/.changeset/odd-beers-perform.md @@ -2,4 +2,4 @@ "@apollo/client": patch --- -Fixes an issue where triggering a query with different variables, then rapidly changing back to initial variables with a cached result would return the wrong result if the previous request finished after switching back to initial variables. +Fix an issue where race conditions when rapidly switching between variables would sometimes result in the wrong `data` returned from the query. Specifically this occurs when a query is triggered with an initial set of variables (`VariablesA`), then triggers the same query with another set of variables (`VariablesB`) but switches back to the `VariablesA` before the response for `VariablesB` is returned. Previously this would result in the data for `VariablesB` to be displayed while `VariablesA` was active. The data is for `VariablesA` is now properly returned.