Skip to content

Calll the ShadowNode::cloneMultiple callback for each cloned node#54431

Closed
bartlomiejbloniarz wants to merge 1 commit into
mainfrom
export-D85852143
Closed

Calll the ShadowNode::cloneMultiple callback for each cloned node#54431
bartlomiejbloniarz wants to merge 1 commit into
mainfrom
export-D85852143

Conversation

@bartlomiejbloniarz

Copy link
Copy Markdown
Contributor

Summary:
The original intention by the cloneMultiple method was to give the possibility of defining the cloning method only for the nodes definied by the list of families. But this way it is impossible to for example set the value of runtimeShadowNodeReference in the fragment, so instead we now pass the responsibility of cloning to the user for all the cloned nodes.

Changelog

[General] [Changed] - cloneMultiple now invokes the callback for every cloned node, instead of doing that only for the nodes in familiesToUpdate

Differential Revision: D85852143

@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 Nov 6, 2025
@facebook-github-bot facebook-github-bot added p: Software Mansion Partner: Software Mansion Partner labels Nov 6, 2025
@meta-codesync

meta-codesync Bot commented Nov 6, 2025

Copy link
Copy Markdown

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

…4431)

Summary:

The original intention by the cloneMultiple method was to give the possibility of defining the cloning method only for the nodes definied by the list of families. But this way it is impossible to for example set the value of `runtimeShadowNodeReference` in the fragment, so instead we now pass the responsibility of cloning to the user for all the cloned nodes.

# Changelog

[General] [Changed] - cloneMultiple now invokes the callback for every cloned node, instead of doing that only for the nodes in `familiesToUpdate`

Reviewed By: javache

Differential Revision: D85852143
@meta-codesync

meta-codesync Bot commented Nov 13, 2025

Copy link
Copy Markdown

This pull request has been merged in 976c849.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Nov 13, 2025
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by Bartlomiej Bloniarz in 976c849

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

douglowder pushed a commit to react-native-tvos/react-native-tvos that referenced this pull request Nov 15, 2025
…4431)

Summary:
Pull Request resolved: react/react-native#54431

The original intention by the cloneMultiple method was to give the possibility of defining the cloning method only for the nodes definied by the list of families. But this way it is impossible to for example set the value of `runtimeShadowNodeReference` in the fragment, so instead we now pass the responsibility of cloning to the user for all the cloned nodes.

# Changelog

[General] [Changed] - cloneMultiple now invokes the callback for every cloned node, instead of doing that only for the nodes in `familiesToUpdate`

Reviewed By: javache

Differential Revision: D85852143

fbshipit-source-id: 9cf0540f546f5f070a918b8a4434ad40f78d91f6
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. meta-exported p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants