Skip to content

Commit

Permalink
Allow subscriptions to be deduplicated, like queries (#6910)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkossis authored Feb 9, 2021
1 parent 7433dcb commit dbad63b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ TBD
- When `@apollo/client` is imported as CommonJS (for example, in Node.js), the global `process` variable is now shadowed with a stripped-down object that includes only `process.env.NODE_ENV` (since that's all Apollo Client needs), eliminating the significant performance penalty of repeatedly accessing `process.env` at runtime. <br/>
[@benjamn](https://github.com/benjamn) in [#7627](https://github.com/apollographql/apollo-client/pull/7627)

- Allow identical subscriptions to be deduplicated by default, like queries. <br/>
[@jkossis](https://github.com/jkossis) in [#6910](https://github.com/apollographql/apollo-client/pull/6910)

### Documentation
TBD

Expand Down
1 change: 0 additions & 1 deletion src/core/QueryManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,6 @@ export class QueryManager<TStore> {
query,
context,
variables,
false,
).map(result => {
if (fetchPolicy !== 'no-cache') {
// the subscription interface should handle not sending us results we no longer subscribe to.
Expand Down

0 comments on commit dbad63b

Please sign in to comment.