Skip to content

VirtualView: Minimize Events w/ Render State#52245

Closed
yungsters wants to merge 1 commit into
facebook:mainfrom
yungsters:export-D77271865
Closed

VirtualView: Minimize Events w/ Render State#52245
yungsters wants to merge 1 commit into
facebook:mainfrom
yungsters:export-D77271865

Conversation

@yungsters
Copy link
Copy Markdown
Contributor

Summary:
Changes VirtualView to avoid dispatching redundant mode change events by reading the last committed renderState to determine whether the desired render state is already in effect.

This enables VirtualView to avoid dispatching synchronous Visible mode change events when a previous Prerender mode change event has already been committed.

Changelog:
[Internal]

Differential Revision: D77271865

@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 Jun 25, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

Summary:
Pull Request resolved: facebook#52245

Changes `VirtualView` to avoid dispatching redundant mode change events by reading the last committed `renderState` to determine whether the desired render state is already in effect.

This enables `VirtualView` to avoid dispatching synchronous `Visible` mode change events when a previous `Prerender` mode change event has already been committed.

Changelog:
[Internal]

Reviewed By: lunaleaps

Differential Revision: D77271865
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 25, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 08a59c5.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @yungsters in 08a59c5

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