Pass getServerSnapshot function to useSyncExternalStore in addition to getSnapshot, though the two functions behave identically. This change should fix/unbreak React 18 server rendering.
@hungphongbk in #9652
Improvements
Consider networkError.result.errors in addition to result.errors in PersistedQueryLink.
@redaid113 and @benjamn in #9410
Commits
1edccee Bump @apollo/client npm version to 3.6.2.
bfd08bf Distinguish between bug fixes and improvements in v3.6.2 release notes.
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot rebase will rebase this MR
$dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts
Bumps [@apollo/client](https://github.com/apollographql/apollo-client) from 3.6.1 to 3.6.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/apollographql/apollo-client/releases"><code>@apollo/client</code>'s releases</a>.</em></p>
<blockquote>
<h2>3.6.2</h2>
<h2>What's Changed</h2>
<ul>
<li>fix Missing getServerSnapshot on React 18 and Next 12 by <a href="https://github.com/hungphongbk"><code>@hungphongbk</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9652">apollographql/apollo-client#9652</a></li>
<li>Fix persistedQueries to pull graphqlErrors from networkErrors by <a href="https://github.com/redaid113"><code>@redaid113</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9410">apollographql/apollo-client#9410</a></li>
<li>Update Apollo PersistedQueries in the Apollo BatchHTTP Link by <a href="https://github.com/iamchathu"><code>@iamchathu</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9637">apollographql/apollo-client#9637</a></li>
<li>Fix code snippets for SubscriptionClient by <a href="https://github.com/rkoron007"><code>@rkoron007</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9634">apollographql/apollo-client#9634</a></li>
<li>Correct the wrong link in ROADMAP.md by <a href="https://github.com/yukukotani"><code>@yukukotani</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9650">apollographql/apollo-client#9650</a></li>
<li>Update Copyright year in LICENSE by <a href="https://github.com/garritfra"><code>@garritfra</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9630">apollographql/apollo-client#9630</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/iamchathu"><code>@iamchathu</code></a> made their first contribution in <a href="https://github.com/apollographql/apollo-client/pull/9637">apollographql/apollo-client#9637</a></li>
<li><a href="https://github.com/hungphongbk"><code>@hungphongbk</code></a> made their first contribution in <a href="https://github.com/apollographql/apollo-client/pull/9652">apollographql/apollo-client#9652</a></li>
<li><a href="https://github.com/yukukotani"><code>@yukukotani</code></a> made their first contribution in <a href="https://github.com/apollographql/apollo-client/pull/9650">apollographql/apollo-client#9650</a></li>
<li><a href="https://github.com/redaid113"><code>@redaid113</code></a> made their first contribution in <a href="https://github.com/apollographql/apollo-client/pull/9410">apollographql/apollo-client#9410</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/apollographql/apollo-client/compare/v3.6.1...v3.6.2">https://github.com/apollographql/apollo-client/compare/v3.6.1...v3.6.2</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md"><code>@apollo/client</code>'s changelog</a>.</em></p>
<blockquote>
<h2>Apollo Client 3.6.2 (2022-05-02)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>Pass <code>getServerSnapshot</code> function to <code>useSyncExternalStore</code> in addition to <code>getSnapshot</code>, though the two functions behave identically. This change should fix/unbreak React 18 server rendering. <!-- raw HTML omitted -->
<a href="https://github.com/hungphongbk"><code>@hungphongbk</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9652">#9652</a></li>
</ul>
<h3>Improvements</h3>
<ul>
<li>Consider <code>networkError.result.errors</code> in addition to <code>result.errors</code> in <code>PersistedQueryLink</code>. <!-- raw HTML omitted -->
<a href="https://github.com/redaid113"><code>@redaid113</code></a> and <a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9410">#9410</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/apollographql/apollo-client/commit/1edccee7ccc6b067761c789c8622480ec86588db"><code>1edccee</code></a> Bump <code>@apollo/client</code> npm version to 3.6.2.</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/bfd08bffb81711ade4569e2fdab22d6f3294cb42"><code>bfd08bf</code></a> Distinguish between bug fixes and improvements in v3.6.2 release notes.</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/f1c6ce9b1706e6d980c35ba25deb5b40715d488f"><code>f1c6ce9</code></a> Mention PR <a href="https://github.com/apollographql/apollo-client/issues/9652">#9652</a> in CHANGELOG.md.</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/66e17509c083634d4ad1d645ecc43769741b39d1"><code>66e1750</code></a> Merge pull request <a href="https://github.com/apollographql/apollo-client/issues/9410">#9410</a> from redaid113/persisted-query-graphqlError-bug</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/b0fe7743e1467ca246a628175bb2b861368271a2"><code>b0fe774</code></a> Mention PR <a href="https://github.com/apollographql/apollo-client/issues/9410">#9410</a> in CHANGELOG.md.</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/aed6e976d631b32dae8c1124f7c264ca6640a1f4"><code>aed6e97</code></a> Allow both result.errors and networkError.result.errors simultaneously.</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/89c55139f39b498f0cd160386cdc10a04fe6abbe"><code>89c5513</code></a> Use collectErrorsByMessage helper to simplify PersistedQueryLink.</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/51c1abe82f357647205772fbb6f52c678368c163"><code>51c1abe</code></a> Fix persitedQueries graphqlErrors bug</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/3578a2ce567c1af7c014ddbbd908111fbefe76e0"><code>3578a2c</code></a> Update Copyright year in LICENSE (<a href="https://github.com/apollographql/apollo-client/issues/9630">#9630</a>)</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/8864205fb1e7e3757c232e089ef8c75e277c9a69"><code>8864205</code></a> Correct link in ROADMAP.md (<a href="https://github.com/apollographql/apollo-client/issues/9650">#9650</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/apollographql/apollo-client/compare/v3.6.1...v3.6.2">compare view</a></li>
</ul>
</details>
<br />
---
<details>
<summary>Dependabot commands</summary>
<br />
You can trigger Dependabot actions by commenting on this MR
- `$dependabot rebase` will rebase this MR
- `$dependabot recreate` will recreate this MR rewriting all the manual changes and resolving conflicts
</details>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bumps @apollo/client from 3.6.1 to 3.6.2.
Release notes
Sourced from
@apollo/client's releases.Changelog
Sourced from
@apollo/client's changelog.Commits
1edcceeBump@apollo/clientnpm version to 3.6.2.bfd08bfDistinguish between bug fixes and improvements in v3.6.2 release notes.f1c6ce9Mention PR #9652 in CHANGELOG.md.66e1750Merge pull request #9410 from redaid113/persisted-query-graphqlError-bugb0fe774Mention PR #9410 in CHANGELOG.md.aed6e97Allow both result.errors and networkError.result.errors simultaneously.89c5513Use collectErrorsByMessage helper to simplify PersistedQueryLink.51c1abeFix persitedQueries graphqlErrors bug3578a2cUpdate Copyright year in LICENSE (#9630)8864205Correct link in ROADMAP.md (#9650)Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot rebasewill rebase this MR$dependabot recreatewill recreate this MR rewriting all the manual changes and resolving conflictsmentioned in commit
1a74316e7f