From f25c1fc7c7842842ced51d15231881fa3d156c93 Mon Sep 17 00:00:00 2001 From: Phil Pluckthun Date: Wed, 28 Apr 2021 13:26:57 +0100 Subject: [PATCH] (core) - Add changeset for #1515 --- .changeset/quiet-tips-drive.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .changeset/quiet-tips-drive.md diff --git a/.changeset/quiet-tips-drive.md b/.changeset/quiet-tips-drive.md new file mode 100644 index 0000000000..e93199fb45 --- /dev/null +++ b/.changeset/quiet-tips-drive.md @@ -0,0 +1,13 @@ +--- +'@urql/core': minor +--- + +Add consistent "single-source behavior" which makes the `Client` more forgiving when duplicate +sources are used, which previously made it difficult to use the same operation across an app +together with `cache-and-network`; This was a rare use-case, and it isn't recommended to overfetch +data across an app, however, the new `Client` implementation of shared sources ensures that when an +operation is active that the `Client` distributes the last known result for the active operation to +any new usages of it (which is called “replaying stale results”) + +See: [#1515](https://github.com/FormidableLabs/urql/pull/1515) +