From 2b1ce1d58020b213a0c7eef2a6d8375b7e668a3a Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Fri, 1 Sep 2023 10:37:28 -0600 Subject: [PATCH] Better changelog message --- .changeset/odd-beers-perform.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.