Skip to content

Add back backwards compat for rawProps.at(x,y,z) (#57346)#57346

Closed
javache wants to merge 1 commit into
react:mainfrom
javache:export-D109837388
Closed

Add back backwards compat for rawProps.at(x,y,z) (#57346)#57346
javache wants to merge 1 commit into
react:mainfrom
javache:export-D109837388

Conversation

@javache

@javache javache commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary:

Restores a deprecated three-argument overload of RawProps::at() for backwards compatibility with existing callers (like Nitro modules) that pass prefix/suffix separately.

The new overload concatenates prefix + name + suffix when needed and delegates to the parser's at(string_view) method. When both prefix and suffix are null, it forwards directly to the single-argument version.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D109837388

@meta-codesync

meta-codesync Bot commented Jun 26, 2026

Copy link
Copy Markdown

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

@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 Jun 26, 2026

@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.

Summary:

Restores a deprecated three-argument overload of `RawProps::at()` for backwards compatibility with existing callers (like Nitro modules) that pass prefix/suffix separately.

The new overload concatenates `prefix + name + suffix` when needed and delegates to the parser's `at(string_view)` method. When both prefix and suffix are null, it forwards directly to the single-argument version.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D109837388
@meta-codesync meta-codesync Bot changed the title Add back backwards compat for rawProps.at(x,y,z) Add back backwards compat for rawProps.at(x,y,z) (#57346) Jun 29, 2026
@javache javache force-pushed the export-D109837388 branch from 8fb1641 to 3407055 Compare June 29, 2026 09:24
@meta-codesync meta-codesync Bot closed this in ce72288 Jun 29, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Jun 29, 2026
@meta-codesync

meta-codesync Bot commented Jun 29, 2026

Copy link
Copy Markdown

This pull request has been merged in ce72288.

@javache javache deleted the export-D109837388 branch June 29, 2026 13:03
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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants