Enable flag disableClientCache (#28846)

Enable flag disableClientCache

Forcing a `__VARIANT__` in the mock file so we keep testing this until
fully removing it.
This commit is contained in:
Jan Kassens
2024-04-16 10:59:36 -04:00
committed by GitHub
parent 734956ace6
commit 8afa144bdc
2 changed files with 3 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;
});