@samitouri / QOS-React / commits / 8afa144bdc

Enable flag disableClientCache (#28846)

Enable flag disableClientCache Forcing a `__VARIANT__` in the mock file so we keep testing this until fully removing it.

Jan Kassens committed Apr 16, 2024 at 10:59 UTC 8afa144bdc08f6d28c55f4169868148f1b4636fb
2 files changed +3 -2
packages/shared/ReactFeatureFlags.js
+1 -1
@@ -159,7 +159,7 @@ export const disableIEWorkarounds = true;
159 export const enableFilterEmptyStringAttributesDOM = true;
160
161 // Disabled caching behavior of `react/cache` in client runtimes.
162 -export const disableClientCache = false;
162 +export const disableClientCache = true;
163
164 // Changes Server Components Reconciliation when they have keys
165 export const enableServerComponentKeys = true;
scripts/jest/setupTests.www.js
+2 -1
@@ -15,10 +15,11 @@ jest.mock('shared/ReactFeatureFlags', () => {
15 // code live.
16 actual.disableInputAttributeSyncing = __VARIANT__;
17
18 - // This is hardcoded to true for the next release,
18 + // These are hardcoded to true for the next release,
19 // but still run the tests against both variants until
20 // we remove the flag.
21 actual.disableIEWorkarounds = __VARIANT__;
22 + actual.disableClientCache = __VARIANT__;
23
24 return actual;
25 });