diff --git a/packages/relay-runtime/store/RelayModernStore.js b/packages/relay-runtime/store/RelayModernStore.js index 4db26b083d69..f1d97b3d649e 100644 --- a/packages/relay-runtime/store/RelayModernStore.js +++ b/packages/relay-runtime/store/RelayModernStore.js @@ -334,9 +334,9 @@ class RelayModernStore implements Store { // buffer have a refCount of 0. if (this._releaseBuffer.length > this._gcReleaseBufferSize) { const _id = this._releaseBuffer.shift(); - // $FlowFixMe[incompatible-call] if (!this._shouldRetainWithinTTL_EXPERIMENTAL) { - this._roots.delete(id); + // $FlowFixMe[incompatible-call] + this._roots.delete(_id); } this.scheduleGC(); }