From 5667bff1d9571286af3d9ca24053d0b155600840 Mon Sep 17 00:00:00 2001 From: Phil Pluckthun Date: Mon, 31 Jan 2022 12:23:27 +0000 Subject: [PATCH] Add changeset with clarification --- .changeset/funny-pugs-tan.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/funny-pugs-tan.md diff --git a/.changeset/funny-pugs-tan.md b/.changeset/funny-pugs-tan.md new file mode 100644 index 0000000000..1dc312dc6b --- /dev/null +++ b/.changeset/funny-pugs-tan.md @@ -0,0 +1,5 @@ +--- +'urql': patch +--- + +Update `useQuery` implementation to avoid an aborted render on initial mount. We abort a render-on-update once when the state needs to be updated according to the `OperationResult` source we need to listen to and execute. However, we can avoid this on the initial mount as we've done in a prior version. This fix **does not** change any of the current behaviour, but simply avoids the confusing state transition on mount.