Skip to content

Commit

Permalink
fix: reset caller on prepareForRecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
jakex7 committed Dec 9, 2024
1 parent d1e9114 commit b75894c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apple/RNSVGRenderable.mm
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ - (void)prepareForRecycle
_vectorEffect = kRNSVGVectorEffectDefault;
_propList = nil;
_filter = nil;
_caller = nil;
}
#endif // RCT_NEW_ARCH_ENABLED

Expand Down Expand Up @@ -722,6 +723,9 @@ - (RNSVGPlatformView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event

- (void)mergeProperties:(__kindof RNSVGRenderable *)target
{
if ([target isEqual:self]) {
return;
}
_caller = target;
NSArray<NSString *> *targetAttributeList = [target getAttributeList];

Expand Down

0 comments on commit b75894c

Please sign in to comment.