Bring back ContextContainer::Shared (#52889)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/52889

This brings back ContextContainer::Shared (but marks it as deprecated which was removed in https://github.com/facebook/react-native/pull/52750

Changelog: [General][Fixed] Bring back ContextContainer::Shared = std::shared_ptr<const ContextContainer> alias

Reviewed By: lenaic

Differential Revision: D79112609

fbshipit-source-id: 1cb9114b98d745b846d5ddc56a01786527049e50
This commit is contained in:
Christoph Purrer
2025-07-28 17:21:34 -07:00
committed by Facebook GitHub Bot
parent 48bf59c85e
commit daeb6e99ab
@@ -25,6 +25,9 @@ namespace facebook::react {
*/
class ContextContainer final {
public:
using Shared
[[deprecated("Use std::shared_ptr<const ContextContainer> instead.")]] =
std::shared_ptr<const ContextContainer>;
/*
* Registers an instance of the particular type `T` in the container
* using the provided `key`. Only one instance can be registered per key.