We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13c9085 commit 710305dCopy full SHA for 710305d
packages/react-native-nitro-modules/cpp/prototype/Prototype.hpp
@@ -60,7 +60,7 @@ struct Prototype final {
60
static std::shared_ptr<Prototype> get(const NativeInstanceId& typeId, const std::shared_ptr<Prototype>& base = nullptr) {
61
static std::unordered_map<NativeInstanceId, std::shared_ptr<Prototype>> _prototypesCache;
62
63
- auto [it, inserted] = cache.try_emplace(typeId);
+ auto [it, inserted] = _prototypesCache.try_emplace(typeId);
64
if (inserted) {
65
// This is the first time we see this C++ type ID - create a new base Prototype for this.
66
it->second = std::shared_ptr<Prototype>(new Prototype(typeId, base));
0 commit comments