From c91c387e3d1769b066530166ae9049b9f571e728 Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Mon, 15 Apr 2024 18:21:43 -0400 Subject: [PATCH] Enable flag disableClientCache Forcing a `__VARIANT__` in the mock file so we keep testing this until fully removing it. --- packages/shared/ReactFeatureFlags.js | 2 +- scripts/jest/setupTests.www.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/shared/ReactFeatureFlags.js b/packages/shared/ReactFeatureFlags.js index 3ed8f45f9a433..f427540563cb1 100644 --- a/packages/shared/ReactFeatureFlags.js +++ b/packages/shared/ReactFeatureFlags.js @@ -159,7 +159,7 @@ export const disableIEWorkarounds = true; export const enableFilterEmptyStringAttributesDOM = true; // Disabled caching behavior of `react/cache` in client runtimes. -export const disableClientCache = false; +export const disableClientCache = true; // Changes Server Components Reconciliation when they have keys export const enableServerComponentKeys = true; diff --git a/scripts/jest/setupTests.www.js b/scripts/jest/setupTests.www.js index 0f2bd556d85d2..485f1b80b683f 100644 --- a/scripts/jest/setupTests.www.js +++ b/scripts/jest/setupTests.www.js @@ -15,10 +15,11 @@ jest.mock('shared/ReactFeatureFlags', () => { // code live. actual.disableInputAttributeSyncing = __VARIANT__; - // This is hardcoded to true for the next release, + // These are hardcoded to true for the next release, // but still run the tests against both variants until // we remove the flag. actual.disableIEWorkarounds = __VARIANT__; + actual.disableClientCache = __VARIANT__; return actual; });