Skip to content

do not iterate through moduleData array to handle UIManager batch completion#46470

Closed
philIip wants to merge 1 commit into
facebook:mainfrom
philIip:export-D62600034
Closed

do not iterate through moduleData array to handle UIManager batch completion#46470
philIip wants to merge 1 commit into
facebook:mainfrom
philIip:export-D62600034

Conversation

@philIip
Copy link
Copy Markdown
Contributor

@philIip philIip commented Sep 12, 2024

Summary:
Changelog: [iOS][Deprecated] - Deprecating RCTBridgeModule batchDidComplete and adding configuration to disable it

batchDidComplete is used for the UIManager to initiate a layout and mount after a callback has been initiated by the bridge. however, we iterate through the whole module array in order to get this single UIManager, which is unnecessary. this also increases risk of a crash because the module array is shared between threads.

Differential Revision: D62600034

…pletion

Summary:
Changelog: [iOS][Deprecated] - Deprecating RCTBridgeModule batchDidComplete and adding configuration to disable it

batchDidComplete is used for the UIManager to initiate a layout and mount after a callback has been initiated by the bridge. however, we iterate through the whole module array in order to get this single UIManager, which is unnecessary. this also increases risk of a crash because the module array is shared between threads.

Differential Revision: D62600034
@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 Sep 12, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 731bd95.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @philIip in 731bd95

When will my fix make it into a release? | How to file a pick request?

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