Skip to content

Commit 8f217ff

Browse files
committed
build: make enableComponentPerformanceTrack dynamic for native-fb
1 parent e1dc034 commit 8f217ff

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

packages/shared/ReactVersion.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1 @@
1-
/**
2-
* Copyright (c) Meta Platforms, Inc. and affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*/
7-
8-
// TODO: this is special because it gets imported during build.
9-
//
10-
// It exists as a placeholder so that DevTools can support work tag changes between releases.
11-
// When we next publish a release, update the matching TODO in backend/renderer.js
12-
// TODO: This module is used both by the release scripts and to expose a version
13-
// at runtime. We should instead inject the version number as part of the build
14-
// process, and use the ReactVersions.js module as the single source of truth.
15-
export default '19.1.0';
1+
export default '19.2.0-canary-22664b2a-20250618';

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ export const passChildrenWhenCloningPersistedNodes = __VARIANT__;
2626
export const enableLazyPublicInstanceInFabric = __VARIANT__;
2727
export const renameElementSymbol = __VARIANT__;
2828
export const enableFragmentRefs = __VARIANT__;
29+
export const enableComponentPerformanceTrack = __VARIANT__;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ export const enableProfilerTimer = __PROFILE__;
5959
export const enableReactTestRendererWarning = false;
6060
export const enableRetryLaneExpiration = false;
6161
export const enableSchedulingProfiler = __PROFILE__;
62-
export const enableComponentPerformanceTrack = false;
6362
export const enableScopeAPI = false;
6463
export const enableSuspenseAvoidThisFallback = false;
6564
export const enableSuspenseCallback = true;
@@ -84,6 +83,8 @@ export const enableSrcObject = false;
8483
export const enableHydrationChangeEvent = true;
8584
export const enableDefaultTransitionIndicator = false;
8685
export const ownerStackLimit = 1e4;
86+
export const enableComponentPerformanceTrack: boolean =
87+
__PROFILE__ && dynamicFlags.enableComponentPerformanceTrack;
8788

8889
// Flow magic to verify the exports of this file match the original version.
8990
((((null: any): ExportsType): FeatureFlagsType): ExportsType);

0 commit comments

Comments
 (0)