Skip to content

Commit

Permalink
chore: Use actual types
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Jan 21, 2025
1 parent 9e45c77 commit 03188d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-native-nitro-modules/cpp/views/CachedProp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ struct CachedProp {
// jsi::Value hasn't changed - no need to convert it again!
return oldProp;
}
auto converted = JSIConverter<T>::fromJSI(runtime, value);
auto cache = JSICache::getOrCreateCache(runtime);
auto cached = cache.makeShared(jsi::Value(runtime, value));
T converted = JSIConverter<T>::fromJSI(runtime, value);
JSICacheReference cache = JSICache::getOrCreateCache(runtime);
OwningReference<jsi::Value> cached = cache.makeShared(jsi::Value(runtime, value));
return CachedProp<T>(std::move(converted), std::move(cached), /* isDirty */ true);
}
};
Expand Down

0 comments on commit 03188d5

Please sign in to comment.