Skip to content

Remove RawPropsKey prefix and suffix#55763

Open
NickGerleman wants to merge 1 commit intofacebook:mainfrom
NickGerleman:export-D94367880
Open

Remove RawPropsKey prefix and suffix#55763
NickGerleman wants to merge 1 commit intofacebook:mainfrom
NickGerleman:export-D94367880

Conversation

@NickGerleman
Copy link
Contributor

Summary:
RawPropsKey previously stored three const char* fields
(prefix, name, suffix) that were concatenated at runtime to form
property names.

This is pretty niche, used to make a few patterns simpler, but also can lead to confusing conflicts when the same property name can be represented in different ways (e.g. T174300106). Iterator style props parsing also completely avoids it.

Lets change the API to a flat name instead.

This change is breaking, but could only find a single user (Nitro module) effected, searching through react-native-libraries.

Changelog:
[General][Breaking] - Remove RawPropsKey prefix and suffix

Reviewed By: javache

Differential Revision: D94367880

Summary:
RawPropsKey previously stored three `const char*` fields
(prefix, name, suffix) that were concatenated at runtime to form
property names.

This is pretty niche, used to make a few patterns simpler, but also can lead to confusing conflicts when the same property name can be represented in different ways (e.g. T174300106). Iterator style props parsing also completely avoids it.

Lets change the API to a flat name instead.

This change is breaking, but could only find a single user (Nitro module) effected, searching through `react-native-libraries`.

Changelog:
[General][Breaking]  - Remove RawPropsKey prefix and suffix

Reviewed By: javache

Differential Revision: D94367880
@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 Feb 26, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 26, 2026

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

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 meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants