Skip to content

Commit 8afa144

Browse files
authored
Enable flag disableClientCache (#28846)
Enable flag disableClientCache Forcing a `__VARIANT__` in the mock file so we keep testing this until fully removing it.
1 parent 734956a commit 8afa144

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/shared/ReactFeatureFlags.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export const disableIEWorkarounds = true;
159159
export const enableFilterEmptyStringAttributesDOM = true;
160160

161161
// Disabled caching behavior of `react/cache` in client runtimes.
162-
export const disableClientCache = false;
162+
export const disableClientCache = true;
163163

164164
// Changes Server Components Reconciliation when they have keys
165165
export const enableServerComponentKeys = true;

scripts/jest/setupTests.www.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ jest.mock('shared/ReactFeatureFlags', () => {
1515
// code live.
1616
actual.disableInputAttributeSyncing = __VARIANT__;
1717

18-
// This is hardcoded to true for the next release,
18+
// These are hardcoded to true for the next release,
1919
// but still run the tests against both variants until
2020
// we remove the flag.
2121
actual.disableIEWorkarounds = __VARIANT__;
22+
actual.disableClientCache = __VARIANT__;
2223

2324
return actual;
2425
});

0 commit comments

Comments
 (0)