GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add disableNativeComponentFrames flag (#20364) · react/react@555eeae

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/shared
    • ReactComponentStackFrame.js
    • ReactFeatureFlags.js
    • forks
      • ReactFeatureFlags.native-fb.js
      • ReactFeatureFlags.native-oss.js
      • ReactFeatureFlags.test-renderer.js
      • ReactFeatureFlags.test-renderer.native.js
      • ReactFeatureFlags.test-renderer.www.js
      • ReactFeatureFlags.testing.js
      • ReactFeatureFlags.testing.www.js
      • ReactFeatureFlags.www-dynamic.js
      • ReactFeatureFlags.www.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/shared/ReactComponentStackFrame.js‎

Copy file name to clipboardExpand all lines: packages/shared/ReactComponentStackFrame.js
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
import type {Source} from 'shared/ReactElementType';
1111
import type {LazyComponent} from 'react/src/ReactLazy';
1212

13-
import {enableComponentStackLocations} from 'shared/ReactFeatureFlags';
13+
import {
14+
enableComponentStackLocations,
15+
disableNativeComponentFrames,
16+
} from 'shared/ReactFeatureFlags';
1417

1518
import {
1619
REACT_SUSPENSE_TYPE,
@@ -65,7 +68,7 @@ export function describeNativeComponentFrame(
6568
construct: boolean,
6669
): string {
6770
// If something asked for a stack inside a fake render, it should get ignored.
68-
if (!fn || reentry) {
71+
if (disableNativeComponentFrames || !fn || reentry) {
6972
return '';
7073
}
7174

Collapse file

‎packages/shared/ReactFeatureFlags.js‎

Copy file name to clipboardExpand all lines: packages/shared/ReactFeatureFlags.js
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ export const enableComponentStackLocations = true;
9898

9999
export const enableNewReconciler = false;
100100

101+
export const disableNativeComponentFrames = false;
102+
101103
// --------------------------
102104
// Future APIs to be deprecated
103105
// --------------------------
Collapse file

‎packages/shared/forks/ReactFeatureFlags.native-fb.js‎

Copy file name to clipboardExpand all lines: packages/shared/forks/ReactFeatureFlags.native-fb.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export const warnAboutSpreadingKeyToJSX = false;
4444
export const enableComponentStackLocations = false;
4545
export const enableLegacyFBSupport = false;
4646
export const enableFilterEmptyStringAttributesDOM = false;
47+
export const disableNativeComponentFrames = false;
4748

4849
export const enableNewReconciler = false;
4950
export const deferRenderPhaseUpdateToNextBatch = true;
Collapse file

‎packages/shared/forks/ReactFeatureFlags.native-oss.js‎

Copy file name to clipboardExpand all lines: packages/shared/forks/ReactFeatureFlags.native-oss.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const warnAboutSpreadingKeyToJSX = false;
4343
export const enableComponentStackLocations = false;
4444
export const enableLegacyFBSupport = false;
4545
export const enableFilterEmptyStringAttributesDOM = false;
46+
export const disableNativeComponentFrames = false;
4647

4748
export const enableNewReconciler = false;
4849
export const deferRenderPhaseUpdateToNextBatch = true;
Collapse file

‎packages/shared/forks/ReactFeatureFlags.test-renderer.js‎

Copy file name to clipboardExpand all lines: packages/shared/forks/ReactFeatureFlags.test-renderer.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const warnAboutSpreadingKeyToJSX = false;
4343
export const enableComponentStackLocations = true;
4444
export const enableLegacyFBSupport = false;
4545
export const enableFilterEmptyStringAttributesDOM = false;
46+
export const disableNativeComponentFrames = false;
4647

4748
export const enableNewReconciler = false;
4849
export const deferRenderPhaseUpdateToNextBatch = true;
Collapse file

‎packages/shared/forks/ReactFeatureFlags.test-renderer.native.js‎

Copy file name to clipboardExpand all lines: packages/shared/forks/ReactFeatureFlags.test-renderer.native.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const warnAboutSpreadingKeyToJSX = false;
4343
export const enableComponentStackLocations = false;
4444
export const enableLegacyFBSupport = false;
4545
export const enableFilterEmptyStringAttributesDOM = false;
46+
export const disableNativeComponentFrames = false;
4647

4748
export const enableNewReconciler = false;
4849
export const deferRenderPhaseUpdateToNextBatch = true;
Collapse file

‎packages/shared/forks/ReactFeatureFlags.test-renderer.www.js‎

Copy file name to clipboardExpand all lines: packages/shared/forks/ReactFeatureFlags.test-renderer.www.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const warnAboutSpreadingKeyToJSX = false;
4343
export const enableComponentStackLocations = true;
4444
export const enableLegacyFBSupport = false;
4545
export const enableFilterEmptyStringAttributesDOM = false;
46+
export const disableNativeComponentFrames = false;
4647

4748
export const enableNewReconciler = false;
4849
export const deferRenderPhaseUpdateToNextBatch = true;
Collapse file

‎packages/shared/forks/ReactFeatureFlags.testing.js‎

Copy file name to clipboardExpand all lines: packages/shared/forks/ReactFeatureFlags.testing.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const warnAboutSpreadingKeyToJSX = false;
4343
export const enableComponentStackLocations = true;
4444
export const enableLegacyFBSupport = false;
4545
export const enableFilterEmptyStringAttributesDOM = false;
46+
export const disableNativeComponentFrames = false;
4647

4748
export const enableNewReconciler = false;
4849
export const deferRenderPhaseUpdateToNextBatch = true;
Collapse file

‎packages/shared/forks/ReactFeatureFlags.testing.www.js‎

Copy file name to clipboardExpand all lines: packages/shared/forks/ReactFeatureFlags.testing.www.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const warnAboutSpreadingKeyToJSX = false;
4343
export const enableComponentStackLocations = true;
4444
export const enableLegacyFBSupport = !__EXPERIMENTAL__;
4545
export const enableFilterEmptyStringAttributesDOM = false;
46+
export const disableNativeComponentFrames = false;
4647

4748
export const enableNewReconciler = false;
4849
export const deferRenderPhaseUpdateToNextBatch = true;
Collapse file

‎packages/shared/forks/ReactFeatureFlags.www-dynamic.js‎

Copy file name to clipboardExpand all lines: packages/shared/forks/ReactFeatureFlags.www-dynamic.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
4747
// to __VARIANT__.
4848
export const enableTrustedTypesIntegration = false;
4949
export const disableSchedulerTimeoutBasedOnReactExpirationTime = false;
50+
export const disableNativeComponentFrames = false;
5051

5152
export const enableDoubleInvokingEffects = false;
5253
export const enableUseRefAccessWarning = __VARIANT__;

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.