The Wire · Showcase
REACT FIBER FIXES FRAGMENTS, FLIGHT ADDS WEAK THENABLES
By RepoJournal · Filed · About Meta
React's Fiber reconciler is collecting Host Singletons in Fragments again, unblocking dispatchEvent calls that were silently failing.
The change revisits a prior exclusion that broke event dispatch on empty singletons like `<body>` when nested in Fragment instances [1]. Separately, React Flight gained a new experimental thenable status, `'pending_weak'` [2], which allows streams to close without waiting for all promises to settle, a significant shift in backpressure handling for streaming SSR. The weak thenable stays forever pending on the client if the connection closes before it resolves, placing responsibility on the application to handle unfulfilled references. On React Native, multiple projects tightened their APIs: Fabric is now unconditional in ReactFragment, deprecating the `fabricEnabled` override [4], while RCTImageEditingManager shed its dead `RCT_EXPORT_METHOD` macro since TurboModule codegen already enforces dispatch [5]. A Swift Package Manager fix ensures the autolinking `--config-command` flag persists across rebuilds [6], closing a gap that broke every subsequent build after the first successful add command. A tintColor transparency regression in Props 2.0 on Android was fixed [3].
One email a day. Unsubscribe in one click.
Keep up with Meta in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Verify Fragment event dispatch works if you have empty host singletons as children facebook/react [plan]
- → Test weak thenables in Flight SSR if you're streaming and have uncritical async work facebook/react [monitor]
- → Remove any fabricEnabled calls from ReactFragment in Android code facebook/react-native [plan]
- → Re-run spm add with --config-command if Expo autolinking builds were unstable facebook/react-native [immediate]
References
- [1] [Fiber] Collect Host Singleton children of Fragments ↗ facebook/react
- [2] [Flight] Add 'pending_weak' to Flight thenable protocol ↗ facebook/react
- [3] fix(android): props 2.0 image tintColor=transparent broken (#57668) facebook/react-native
- [4] Deprecate fabricEnabled from ReactFragment (#57764) facebook/react-native
- [5] Drop RCT_EXPORT_METHOD from RCTImageEditingManager (#57773) facebook/react-native
- [6] fix(swiftpm): persist --config-command so the in-build sync keeps using it (#57756) facebook/react-native