Skip to content

VirtualizedList: Delete Batchinator#48515

Closed
yungsters wants to merge 2 commits into
facebook:mainfrom
yungsters:export-D67885194
Closed

VirtualizedList: Delete Batchinator#48515
yungsters wants to merge 2 commits into
facebook:mainfrom
yungsters:export-D67885194

Conversation

@yungsters
Copy link
Copy Markdown
Contributor

Summary:
Deletes Batchinator, inlines the timer, and cleans up the disableInteractionManagerInBatchinator feature flag.

Changelog:
[Internal]

Differential Revision: D67885194

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

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

Summary:

Currently, `VirtualizedList-test.js` has a subtle dependency on how asynchronous operations are queued. Specifically, it depends on...

- `Batchinator` to use `setTimeout` for...
- `InteractionManager` to use `setImmediate` for...
- `InteractionManager` to resolve a promise via microtask.

As a consequence, any changes to this queueing logic (e.g. eliminating the unnecessary `setImmediate` and microtask) unnecessarily breaks these unit tests.

This changes the Jest unit tests to instead use `jest. advanceTimersToNextTimer(<step>)` instead of `jest.runOnlyPendingTimers()` so that the unit tests are no longer dependent on these specific queueing logic.

Changelog:
[Internal]

Reviewed By: NickGerleman

Differential Revision: D68449850
Summary:

Deletes `Batchinator`, inlines the timer, and cleans up the `disableInteractionManagerInBatchinator` feature flag.

Changelog:
[Internal]

Reviewed By: javache, NickGerleman

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

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

yungsters added a commit to yungsters/react-native that referenced this pull request Jan 22, 2025
Summary:
Pull Request resolved: facebook#48515

Deletes `Batchinator`, inlines the timer, and cleans up the `disableInteractionManagerInBatchinator` feature flag.

Changelog:
[Internal]

Reviewed By: javache, NickGerleman

Differential Revision: D67885194
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jan 22, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in c8a387c.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @yungsters in c8a387c

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

@yungsters yungsters deleted the export-D67885194 branch March 13, 2025 16:09
@ScreamZ
Copy link
Copy Markdown

ScreamZ commented Apr 24, 2025

@yungsters When is that supposed to be avaible

I'm getting strange issue with

react 18.3.1
react-native 0.76.9
expo 52.0.46

image

Not sure why…

@yungsters
Copy link
Copy Markdown
Contributor Author

This change should’ve been included in 0.78.

The issue you’re seeing shouldn’t be happening, unless you are using mismatched versions of react-native and @react-native/virtualized-list.

@ScreamZ
Copy link
Copy Markdown

ScreamZ commented Apr 28, 2025

This change should’ve been included in 0.78.

The issue you’re seeing shouldn’t be happening, unless you are using mismatched versions of react-native and @react-native/virtualized-list.

Yep ! I'm refactoring a monorepo from a customer, had to remove this line in metro config was related to such config, i changed it now its okay
https://metrobundler.dev/docs/configuration/#disablehierarchicallookup

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.

4 participants