From d4874e02ca47949a9a15cd1cb1190939eaaaada4 Mon Sep 17 00:00:00 2001 From: Lynn Yu Date: Fri, 20 Dec 2024 13:46:44 -0800 Subject: [PATCH] fix forward twilight ubn Reviewed By: tyao1 Differential Revision: D67540012 fbshipit-source-id: d6c7a7297aff9a47519f05749006c6e3c3ce4d0b --- packages/relay-runtime/store/RelayModernStore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/relay-runtime/store/RelayModernStore.js b/packages/relay-runtime/store/RelayModernStore.js index 4db26b083d69a..f1d97b3d649ed 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(); }