Skip to content

Commit 53a8baa

Browse files
committed
Add code comment explaining non-obvious interaction
1 parent a5b9750 commit 53a8baa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ios/RNSScreenStack.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,6 +1234,9 @@ - (void)mountingTransactionDidMount:(const facebook::react::MountingTransaction
12341234
withSurfaceTelemetry:(const facebook::react::SurfaceTelemetry &)surfaceTelemetry
12351235
{
12361236
for (const auto &mutation : transaction.getMutations()) {
1237+
// Note that self.tag might be invalid in cases this stack is removed.
1238+
// This mostlikely does not cause any problems now, but it is something
1239+
// worth to be aware of.
12371240
if (MUTATION_PARENT_TAG(mutation) == self.tag &&
12381241
(mutation.type == react::ShadowViewMutation::Type::Insert ||
12391242
mutation.type == react::ShadowViewMutation::Type::Remove)) {

0 commit comments

Comments
 (0)