Skip to content

Commit f42948b

Browse files
committed
chore: add new feature flags for fix
1 parent e360cc5 commit f42948b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

packages/@lwc/features/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const features: FeatureFlagMap = {
2323
DISABLE_SCOPE_TOKEN_VALIDATION: null,
2424
LEGACY_LOCKER_ENABLED: null,
2525
DISABLE_LEGACY_VALIDATION: null,
26+
DISABLE_DETACHED_REHYDRATION: null,
2627
};
2728

2829
if (!(globalThis as any).lwcRuntimeFlags) {

packages/@lwc/features/src/types.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ export interface FeatureFlagMap {
9393
* If false or unset, then the value of the `LEGACY_LOCKER_ENABLED` flag is used.
9494
*/
9595
DISABLE_LEGACY_VALIDATION: FeatureFlagValue;
96+
97+
/**
98+
* If true, skips rehydration of DOM elements that are not connected.
99+
* Applies to rehydration performed while flushing the rehydration queue.
100+
*/
101+
DISABLE_DETACHED_REHYDRATION: FeatureFlagValue;
96102
}
97103

98104
export type FeatureFlagName = keyof FeatureFlagMap;

0 commit comments

Comments
 (0)