Skip to content

Commit daeb6e9

Browse files
Bring back ContextContainer::Shared (#52889)
Summary: Pull Request resolved: #52889 This brings back ContextContainer::Shared (but marks it as deprecated which was removed in #52750 Changelog: [General][Fixed] Bring back ContextContainer::Shared = std::shared_ptr<const ContextContainer> alias Reviewed By: lenaic Differential Revision: D79112609 fbshipit-source-id: 1cb9114b98d745b846d5ddc56a01786527049e50
1 parent 48bf59c commit daeb6e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/react-native/ReactCommon/react/utils/ContextContainer.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ namespace facebook::react {
2525
*/
2626
class ContextContainer final {
2727
public:
28+
using Shared
29+
[[deprecated("Use std::shared_ptr<const ContextContainer> instead.")]] =
30+
std::shared_ptr<const ContextContainer>;
2831
/*
2932
* Registers an instance of the particular type `T` in the container
3033
* using the provided `key`. Only one instance can be registered per key.

0 commit comments

Comments
 (0)