GeezerVison is showing github.com — Fix enableTransitionTracing flag (#24801) · react/react@88574c1
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: packages/react-noop-renderer/src/createReactNoop.js +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -806,6 +806,7 @@ function createReactNoop(reconciler: Function, useMutation: boolean) { | 806 | 806 | false, | 807 | 807 | '', | 808 | 808 | onRecoverableError, | | 809 | + null, | 809 | 810 | ); | 810 | 811 | roots.set(rootID, root); | 811 | 812 | } | @@ -859,6 +860,7 @@ function createReactNoop(reconciler: Function, useMutation: boolean) { | 859 | 860 | false, | 860 | 861 | '', | 861 | 862 | onRecoverableError, | | 863 | + null, | 862 | 864 | ); | 863 | 865 | return { | 864 | 866 | _Scheduler: Scheduler, | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiber.new.js +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -734,6 +734,9 @@ export function createFiberFromLegacyHidden( | 734 | 734 | const fiber = createFiber(LegacyHiddenComponent, pendingProps, key, mode); | 735 | 735 | fiber.elementType = REACT_LEGACY_HIDDEN_TYPE; | 736 | 736 | fiber.lanes = lanes; | | 737 | + // Adding a stateNode for legacy hidden because it's currently using | | 738 | + // the offscreen implementation, which depends on a state node | | 739 | + fiber.stateNode = {}; | 737 | 740 | return fiber; | 738 | 741 | } | 739 | 742 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiber.old.js +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -734,6 +734,9 @@ export function createFiberFromLegacyHidden( | 734 | 734 | const fiber = createFiber(LegacyHiddenComponent, pendingProps, key, mode); | 735 | 735 | fiber.elementType = REACT_LEGACY_HIDDEN_TYPE; | 736 | 736 | fiber.lanes = lanes; | | 737 | + // Adding a stateNode for legacy hidden because it's currently using | | 738 | + // the offscreen implementation, which depends on a state node | | 739 | + fiber.stateNode = {}; | 737 | 740 | return fiber; | 738 | 741 | } | 739 | 742 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/react/index.classic.fb.js +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -34,6 +34,7 @@ export { | 34 | 34 | startTransition, | 35 | 35 | startTransition as unstable_startTransition, // TODO: Remove once call sights updated to startTransition | 36 | 36 | unstable_Cache, | | 37 | + unstable_TracingMarker, | 37 | 38 | unstable_DebugTracingMode, | 38 | 39 | unstable_LegacyHidden, | 39 | 40 | unstable_Offscreen, | |
Collapse file Copy file name to clipboardExpand all lines: packages/shared/forks/ReactFeatureFlags.www.js +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -33,6 +33,7 @@ export const { | 33 | 33 | enableSyncDefaultUpdates, | 34 | 34 | enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay, | 35 | 35 | enableClientRenderFallbackOnTextMismatch, | | 36 | + enableTransitionTracing, | 36 | 37 | } = dynamicFeatureFlags; | 37 | 38 |
| 38 | 39 | // On WWW, __EXPERIMENTAL__ is used for a new modern build. | @@ -106,8 +107,6 @@ export const enableUseMutableSource = true; | 106 | 107 |
| 107 | 108 | export const enableCustomElementPropertySupport = __EXPERIMENTAL__; | 108 | 109 |
| 109 | | -export const enableTransitionTracing = false; | 110 | | - | 111 | 110 | export const enableSymbolFallbackForWWW = true; | 112 | 111 | // Flow magic to verify the exports of this file match the original version. | 113 | 112 | // eslint-disable-next-line no-unused-vars | |
|