Skip to content

Cleanup enableVirtualViewDebugFeatures and FlingItemOverlay#56946

Open
javache wants to merge 3 commits into
facebook:mainfrom
javache:export-D105959433
Open

Cleanup enableVirtualViewDebugFeatures and FlingItemOverlay#56946
javache wants to merge 3 commits into
facebook:mainfrom
javache:export-D105959433

Conversation

@javache
Copy link
Copy Markdown
Member

@javache javache commented May 22, 2026

Summary:
The enableVirtualViewDebugFeatures feature flag was effectively dead — its only MobileConfig backing param (rn_fling.fling_debug) hadn't been updated in 365+ days, and the codemod-tracking diff D105936405 was already queued to remove the three native overrides. Rather than carry the FF + JS overlay surface forward, delete the whole stack: the FF, the overrides, the BUCK dep, the JS overlay components (FlingItemOverlay, FlingDebugItemOverlay, FlingDebugOverlay), the debug-log helpers in the native ScrollView/VirtualView implementations on both iOS and Android, and the now-orphaned references in VirtualCollectionView.

Net: 4 files deleted, the FF removed from the cross-language codegen, native debug logging dropped from 5 files (1 ObjC++, 4 Kotlin), and consumer code in VirtualCollectionView simplified.

Changelog:
[General][Removed] - Remove unused enableVirtualViewDebugFeatures feature flag and the associated FlingItemOverlay / FlingDebugItemOverlay debug surfaces.

Reviewed By: lunaleaps

Differential Revision: D105959433

javache and others added 3 commits May 22, 2026 02:55
Summary:
Replace the `std::mutex` + `std::condition_variable` + `std::shared_ptr<bool>` trio that gates the JS thread on main-queue module construction with a single `dispatch_semaphore_t`. The wait block is invoked exactly once (from `_loadScriptFromSource:`'s `beforeLoad` lambda), so single-shot semaphore semantics fit the contract directly — no condition predicate, no shared state captured by three independent `shared_ptr`s.

Net: 12 lines deleted, 1 captured object instead of 3, no behavior change.

Changelog: [Internal]

Differential Revision: D105953979
…always-on

Summary:
The `enableEagerMainQueueModulesOnIOS` runtime gate has finished rollout and is no longer needed. Drop the flag from the feature-flag config, regenerate the per-language accessors, and inline the previously-gated body in `RCTInstance._start` so the eager main-queue module setup always runs. Also drops the now-dead override and trims the test that exercised the flag-off branch.

After this change, when `RCTInstance` starts up, it always consults `RCTInstanceDelegate.unstableModulesRequiringMainQueueSetup`, initializes the returned modules on the main queue, and blocks the JS thread on that completion before evaluating the bundle.

Changelog:
[iOS][Changed] - Native modules listed in `unstableModulesRequiringMainQueueSetup` are now always initialized eagerly on the main queue during React Native init; the previous `enableEagerMainQueueModulesOnIOS` opt-in flag has been removed.

Differential Revision: D105954235
Summary:
The `enableVirtualViewDebugFeatures` feature flag was effectively dead — its only MobileConfig backing param (`rn_fling.fling_debug`) hadn't been updated in 365+ days, and the codemod-tracking diff D105936405 was already queued to remove the three native overrides. Rather than carry the FF + JS overlay surface forward, delete the whole stack: the FF, the overrides, the BUCK dep, the JS overlay components (`FlingItemOverlay`, `FlingDebugItemOverlay`, `FlingDebugOverlay`), the debug-log helpers in the native ScrollView/VirtualView implementations on both iOS and Android, and the now-orphaned references in `VirtualCollectionView`.

Net: 4 files deleted, the FF removed from the cross-language codegen, native debug logging dropped from 5 files (1 ObjC++, 4 Kotlin), and consumer code in `VirtualCollectionView` simplified.

Changelog:
[General][Removed] - Remove unused `enableVirtualViewDebugFeatures` feature flag and the associated `FlingItemOverlay` / `FlingDebugItemOverlay` debug surfaces.

Reviewed By: lunaleaps

Differential Revision: D105959433
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 22, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 22, 2026

@javache has exported this pull request. If you are a Meta employee, you can view the originating Diff in D105959433.

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 meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant