Skip to content

Fix RCTImageLoader to call completion handler when networking is unavailable#56255

Open
javache wants to merge 1 commit intofacebook:mainfrom
javache:export-D98122553
Open

Fix RCTImageLoader to call completion handler when networking is unavailable#56255
javache wants to merge 1 commit intofacebook:mainfrom
javache:export-D98122553

Conversation

@javache
Copy link
Copy Markdown
Member

@javache javache commented Mar 27, 2026

Summary:
RCTImageLoader._loadURLRequest: returned NULL without calling the completion handler when the RCTNetworking module was unavailable. This left dispatch_group_wait in RCTSyncImageManager blocking for the full 20-second timeout per image.

Additionally, the checks were guarded by RCT_DEBUG, meaning they only ran in debug builds. Remove the RCT_DEBUG guard so the error path runs in all builds.

Changelog: [Internal]

Differential Revision: D98122553

…ailable

Summary:
`RCTImageLoader._loadURLRequest:` returned NULL without calling the completion handler when the `RCTNetworking` module was unavailable. This left `dispatch_group_wait` in `RCTSyncImageManager` blocking for the full 20-second timeout per image.

Additionally, the checks were guarded by `RCT_DEBUG`, meaning they only ran in debug builds. Remove the `RCT_DEBUG` guard so the error path runs in all builds.

Changelog: [Internal]

Differential Revision: D98122553
@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 Mar 27, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 27, 2026

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

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