Skip to content

Sort IntersectionObserver thresholds numerically - #58245

Closed
OskarEichler wants to merge 1 commit into
react:mainfrom
OskarEichler:codex/fix-intersection-observer-threshold-sort
Closed

Sort IntersectionObserver thresholds numerically#58245
OskarEichler wants to merge 1 commit into
react:mainfrom
OskarEichler:codex/fix-intersection-observer-threshold-sort

Conversation

@OskarEichler

Copy link
Copy Markdown
Contributor

Summary:

Both standard threshold and React Native rnRootThreshold arrays currently use default lexicographic sorting. Add numeric comparators so valid small values whose string forms use exponent notation are exposed in ascending numeric order, and cover both normalization paths.

Fixes #58244.

Changelog:

[GENERAL] [FIXED] - Sort IntersectionObserver threshold arrays numerically.

Test Plan:

  • Exact upstream focused run: 108 existing tests passed and both new threshold assertions failed.
  • Fixed focused Fantom run: 110/110 passed across two suites.
  • Fresh Flow check: 0 errors.
  • Targeted no-ignore ESLint, Prettier, and git diff --check passed.

Only incorrectly ordered threshold arrays change.

@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 Aug 30, 2026
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Aug 30, 2026
@meta-codesync

meta-codesync Bot commented Sep 1, 2026

Copy link
Copy Markdown

@javache has imported this pull request. If you are a Meta employee, you can view this in D118266760.

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync Bot closed this in ee32dfc Sep 1, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Sep 1, 2026
@meta-codesync

meta-codesync Bot commented Sep 1, 2026

Copy link
Copy Markdown

@javache merged this pull request in ee32dfc.

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. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IntersectionObserver sorts small thresholds lexicographically

2 participants