Skip to content

Allow accessing common feature flags before setting overrides for JS-only overrides#43394

Closed
rubennorte wants to merge 2 commits into
facebook:mainfrom
rubennorte:export-D54687055
Closed

Allow accessing common feature flags before setting overrides for JS-only overrides#43394
rubennorte wants to merge 2 commits into
facebook:mainfrom
rubennorte:export-D54687055

Conversation

@rubennorte

Copy link
Copy Markdown
Contributor

Summary:
Changelog: [internal]

When we built the new feature flag system we added a constraint in the JS API to prevent calling override if any of the flags was already accessed from JS.

This is very restrictive because it doesn't allow us to access common flags (like enableMicrotasks) set up from native during the initialization of the framework because then applications wouldn't be able to set JS-only overrides.

This relaxes the constraint to disallow accessing JS-only flags before setting JS-only overrides, but accessing common (native) flags before that is ok.

Differential Revision: D54687055

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Mar 8, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D54687055

@analysis-bot

analysis-bot commented Mar 8, 2024

Copy link
Copy Markdown
Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 18,053,512 +27
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 21,407,911 -18
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: e2157f0
Branch: main

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D54687055

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D54687055

…erated files before writing (facebook#43393)

Summary:

Changelog: [internal]

The generator doesn't create intermediate directories, which is causing issues now that we're moving the generated native module spec to a new directory.

This fixes that.

Differential Revision: D54690126
…only overrides (facebook#43394)

Summary:

Changelog: [internal]

When we built the new feature flag system we added a constraint in the JS API to prevent calling `override` if any of the flags was already accessed from JS.

This is very restrictive because it doesn't allow us to access common flags (like `enableMicrotasks`) set up from native during the initialization of the framework because then applications wouldn't be able to set JS-only overrides.

This relaxes the constraint to disallow accessing JS-only flags before setting JS-only overrides, but accessing common (native) flags before that is ok.

Differential Revision: D54687055
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D54687055

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 12, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 9c9c7ed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants