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

Allow non-static LongLivedObjectCollections in TurboModuleBinding #42194

Closed
wants to merge 1 commit into from

Conversation

rozele
Copy link
Contributor

@rozele rozele commented Jan 9, 2024

Summary: Apps that have multiple concurrently running React instances may suffer from issues where tearing down one instance affects the bindings / LongLivedObjectCollection instance of another due to the use of static getter for LongLivedObjectCollection. This should allow host platforms, e.g., react-native-windows (which still forks the TurboModuleBinding C++ files here for the reasons already mentioned) to manage per instance LongLivedObjectCollections.

Differential Revision: D52581170

@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. p: Facebook Partner: Facebook Partner labels Jan 9, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52581170

@analysis-bot
Copy link

analysis-bot commented Jan 9, 2024

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 16,773,707 +4,093
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 20,165,572 +4,101
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: a9a736f
Branch: main

rozele added a commit to rozele/react-native-macos that referenced this pull request Jan 9, 2024
…cebook#42194)

Summary:

Apps that have multiple concurrently running React instances may suffer from issues where tearing down one instance affects the bindings / LongLivedObjectCollection instance of another due to the use of static getter for LongLivedObjectCollection. This should allow host platforms, e.g., react-native-windows (which still forks the TurboModuleBinding C++ files [here](https://github.com/microsoft/react-native-windows/tree/main/vnext/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon) for the reasons already mentioned) to manage per instance LongLivedObjectCollections.

## Changelog

[Internal]

Differential Revision: D52581170
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52581170

rozele added a commit to rozele/react-native-macos that referenced this pull request Jan 9, 2024
…cebook#42194)

Summary:

Apps that have multiple concurrently running React instances may suffer from issues where tearing down one instance affects the bindings / LongLivedObjectCollection instance of another due to the use of static getter for LongLivedObjectCollection. This should allow host platforms, e.g., react-native-windows (which still forks the TurboModuleBinding C++ files [here](https://github.com/microsoft/react-native-windows/tree/main/vnext/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon) for the reasons already mentioned) to manage per instance LongLivedObjectCollections.

## Changelog

[Internal]

Differential Revision: D52581170
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52581170

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52581170

rozele added a commit to rozele/react-native-macos that referenced this pull request Jan 9, 2024
…cebook#42194)

Summary:
Pull Request resolved: facebook#42194

Apps that have multiple concurrently running React instances may suffer from issues where tearing down one instance affects the bindings / LongLivedObjectCollection instance of another due to the use of static getter for LongLivedObjectCollection. This should allow host platforms, e.g., react-native-windows (which still forks the TurboModuleBinding C++ files [here](https://github.com/microsoft/react-native-windows/tree/main/vnext/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon) for the reasons already mentioned) to manage per instance LongLivedObjectCollections.

## Changelog

[Internal]

Differential Revision: D52581170

fbshipit-source-id: db5991ad75094bd8c9bcabde94da62ac9c87ab00
rozele added a commit to rozele/react-native-macos that referenced this pull request Jan 9, 2024
…cebook#42194)

Summary:

Apps that have multiple concurrently running React instances may suffer from issues where tearing down one instance affects the bindings / LongLivedObjectCollection instance of another due to the use of static getter for LongLivedObjectCollection. This should allow host platforms, e.g., react-native-windows (which still forks the TurboModuleBinding C++ files [here](https://github.com/microsoft/react-native-windows/tree/main/vnext/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon) for the reasons already mentioned) to manage per instance LongLivedObjectCollections.

## Changelog

[Internal]

Reviewed By: christophpurrer

Differential Revision: D52581170
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52581170

rozele added a commit to rozele/react-native-macos that referenced this pull request Jan 9, 2024
…cebook#42194)

Summary:

Apps that have multiple concurrently running React instances may suffer from issues where tearing down one instance affects the bindings / LongLivedObjectCollection instance of another due to the use of static getter for LongLivedObjectCollection. This should allow host platforms, e.g., react-native-windows (which still forks the TurboModuleBinding C++ files [here](https://github.com/microsoft/react-native-windows/tree/main/vnext/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon) for the reasons already mentioned) to manage per instance LongLivedObjectCollections.

## Changelog

[Internal]

Reviewed By: christophpurrer

Differential Revision: D52581170
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52581170

rozele added a commit to rozele/react-native-macos that referenced this pull request Jan 9, 2024
…cebook#42194)

Summary:

Apps that have multiple concurrently running React instances may suffer from issues where tearing down one instance affects the bindings / LongLivedObjectCollection instance of another due to the use of static getter for LongLivedObjectCollection. This should allow host platforms, e.g., react-native-windows (which still forks the TurboModuleBinding C++ files [here](https://github.com/microsoft/react-native-windows/tree/main/vnext/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon) for the reasons already mentioned) to manage per instance LongLivedObjectCollections.

## Changelog

[Internal]

Reviewed By: christophpurrer

Differential Revision: D52581170
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52581170

rozele added a commit to rozele/react-native-macos that referenced this pull request Jan 9, 2024
…cebook#42194)

Summary:

Apps that have multiple concurrently running React instances may suffer from issues where tearing down one instance affects the bindings / LongLivedObjectCollection instance of another due to the use of static getter for LongLivedObjectCollection. This should allow host platforms, e.g., react-native-windows (which still forks the TurboModuleBinding C++ files [here](https://github.com/microsoft/react-native-windows/tree/main/vnext/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon) for the reasons already mentioned) to manage per instance LongLivedObjectCollections.

## Changelog

[Internal]

Reviewed By: christophpurrer

Differential Revision: D52581170
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52581170

rozele added a commit to rozele/react-native-macos that referenced this pull request Jan 9, 2024
…cebook#42194)

Summary:

Apps that have multiple concurrently running React instances may suffer from issues where tearing down one instance affects the bindings / LongLivedObjectCollection instance of another due to the use of static getter for LongLivedObjectCollection. This should allow host platforms, e.g., react-native-windows (which still forks the TurboModuleBinding C++ files [here](https://github.com/microsoft/react-native-windows/tree/main/vnext/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon) for the reasons already mentioned) to manage per instance LongLivedObjectCollections.

## Changelog

[Internal]

Reviewed By: christophpurrer

Differential Revision: D52581170
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52581170

rozele added a commit to rozele/react-native-macos that referenced this pull request Jan 9, 2024
…cebook#42194)

Summary:

Apps that have multiple concurrently running React instances may suffer from issues where tearing down one instance affects the bindings / LongLivedObjectCollection instance of another due to the use of static getter for LongLivedObjectCollection. This should allow host platforms, e.g., react-native-windows (which still forks the TurboModuleBinding C++ files [here](https://github.com/microsoft/react-native-windows/tree/main/vnext/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon) for the reasons already mentioned) to manage per instance LongLivedObjectCollections.

## Changelog

[Internal]

Reviewed By: christophpurrer

Differential Revision: D52581170
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52581170

rozele added a commit to rozele/react-native-macos that referenced this pull request Jan 9, 2024
…cebook#42194)

Summary:

Apps that have multiple concurrently running React instances may suffer from issues where tearing down one instance affects the bindings / LongLivedObjectCollection instance of another due to the use of static getter for LongLivedObjectCollection. This should allow host platforms, e.g., react-native-windows (which still forks the TurboModuleBinding C++ files [here](https://github.com/microsoft/react-native-windows/tree/main/vnext/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon) for the reasons already mentioned) to manage per instance LongLivedObjectCollections.

## Changelog

[Internal]

Reviewed By: christophpurrer

Differential Revision: D52581170
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52581170

…cebook#42194)

Summary:

Apps that have multiple concurrently running React instances may suffer from issues where tearing down one instance affects the bindings / LongLivedObjectCollection instance of another due to the use of static getter for LongLivedObjectCollection. This should allow host platforms, e.g., react-native-windows (which still forks the TurboModuleBinding C++ files [here](https://github.com/microsoft/react-native-windows/tree/main/vnext/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon) for the reasons already mentioned) to manage per instance LongLivedObjectCollections.

## Changelog

[Internal]

Reviewed By: christophpurrer

Differential Revision: D52581170
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52581170

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jan 9, 2024
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in f7f9250.

Othinn pushed a commit to Othinn/react-native that referenced this pull request Jan 9, 2024
…cebook#42194)

Summary:
Pull Request resolved: facebook#42194

Apps that have multiple concurrently running React instances may suffer from issues where tearing down one instance affects the bindings / LongLivedObjectCollection instance of another due to the use of static getter for LongLivedObjectCollection. This should allow host platforms, e.g., react-native-windows (which still forks the TurboModuleBinding C++ files [here](https://github.com/microsoft/react-native-windows/tree/main/vnext/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon) for the reasons already mentioned) to manage per instance LongLivedObjectCollections.

## Changelog

[Internal]

Reviewed By: christophpurrer

Differential Revision: D52581170

fbshipit-source-id: 791e3baeefaf23f544eeddd5a216735535523a9d
gokul1099 pushed a commit to gokul1099/react-native-visionos that referenced this pull request Jan 17, 2024
…cebook#42194)

Summary:
Pull Request resolved: facebook#42194

Apps that have multiple concurrently running React instances may suffer from issues where tearing down one instance affects the bindings / LongLivedObjectCollection instance of another due to the use of static getter for LongLivedObjectCollection. This should allow host platforms, e.g., react-native-windows (which still forks the TurboModuleBinding C++ files [here](https://github.com/microsoft/react-native-windows/tree/main/vnext/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon) for the reasons already mentioned) to manage per instance LongLivedObjectCollections.

## Changelog

[Internal]

Reviewed By: christophpurrer

Differential Revision: D52581170

fbshipit-source-id: 791e3baeefaf23f544eeddd5a216735535523a9d
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. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants