Skip to content

Commit

Permalink
Create a universal way to force-enable Fusebox at Buck build time (#4…
Browse files Browse the repository at this point in the history
…3589)

Summary:
Pull Request resolved: #43589

Changelog: [Internal]

Adds a way of enabling the Fusebox backend in React Native regardless of the corresponding feature flags. This is only supported in the Buck build and not intended for use in OSS.

Reviewed By: huntie

Differential Revision: D55144502

fbshipit-source-id: 116cd30464acfbd3fafc503300f94cb238adeda8
  • Loading branch information
motiz88 authored and facebook-github-bot committed Mar 21, 2024
1 parent 0267ca0 commit 1c52d38
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,19 @@ void InspectorFlags::dangerouslyResetFlags() {
const InspectorFlags::Values& InspectorFlags::loadFlagsAndAssertUnchanged()
const {
InspectorFlags::Values newValues = {
.enableCxxInspectorPackagerConnection = ReactNativeFeatureFlags::
inspectorEnableCxxInspectorPackagerConnection(),
.enableCxxInspectorPackagerConnection =
#ifdef REACT_NATIVE_FORCE_ENABLE_FUSEBOX
true,
#else
ReactNativeFeatureFlags::
inspectorEnableCxxInspectorPackagerConnection(),
#endif
.enableModernCDPRegistry =
#ifdef REACT_NATIVE_FORCE_ENABLE_FUSEBOX
true,
#else
ReactNativeFeatureFlags::inspectorEnableModernCDPRegistry(),
#endif
};

if (cachedValues_.has_value() && !inconsistentFlagsStateLogged_) {
Expand Down

0 comments on commit 1c52d38

Please sign in to comment.