Andrey Chechel
Andrey Chechel
We've identified memory leak in [removeClientSetsFromDocument](https://github.com/apollographql/apollo-link-state/blob/34774d886a9ec6229e93665bf3f10d34cbad7e0b/packages/apollo-link-state/src/utils.ts#L13-L30) function. The problem is the [query](https://github.com/apollographql/apollo-link-state/blob/34774d886a9ec6229e93665bf3f10d34cbad7e0b/packages/apollo-link-state/src/utils.ts#L14) parameter can refer to identical **DocumentNodes** which are actually different objects having different references. That makes [cache hits](https://github.com/apollographql/apollo-link-state/blob/34774d886a9ec6229e93665bf3f10d34cbad7e0b/packages/apollo-link-state/src/utils.ts#L18)...