Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: RawPropsParser add useRawPropsJsiValue parameter #48231

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

hannojg
Copy link
Contributor

@hannojg hannojg commented Dec 12, 2024

Summary:

In this PR we added a change that allows the RawPropsParser to construct its RawValues directly from the jsi::Value instead of converting it to folly::dynamic first.
We added a global feature flag to turn this on, however, for migrations it might be better to use this functionality as an opt-in on a component basis. With this change ComponentDescriptors can now create their RawPropsParser instance with the useRawPropsJsiValue flag to opt into it.

(Note: a few more changes are needed to make this accessible to the ComponentDescriptor, for which I opened this follow up PR here)

Changelog:

[INTERNAL] [ADDED] - Added useRawPropsJsiValue parameter to RawPropsParser to opt into skipping folly::dynamic conversions during prop parsing.

Test Plan:

Internal change / just make sure all tests are passing.

@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. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Dec 12, 2024
@hannojg hannojg requested a review from javache December 12, 2024 10:33
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. 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.

3 participants