mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Fabric: RCTSurfaceRegistry now stores Surfaces as weak references
Summary: @public RCTSurfaceRegistry always promised this in the documentation but never actually did. Reviewed By: sahrens Differential Revision: D9652732 fbshipit-source-id: f3d06b95192e024273dc0e3a1c2753ca92370338
This commit is contained in:
committed by
Facebook Github Bot
parent
10181f31bd
commit
d2186081b3
@@ -20,7 +20,7 @@
|
||||
{
|
||||
if (self = [super init]) {
|
||||
_registry = [NSMapTable mapTableWithKeyOptions:NSPointerFunctionsIntegerPersonality | NSPointerFunctionsOpaqueMemory
|
||||
valueOptions:NSPointerFunctionsObjectPersonality];
|
||||
valueOptions:NSPointerFunctionsObjectPersonality | NSPointerFunctionsWeakMemory];
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
Reference in New Issue
Block a user