Skip to content

Commit

Permalink
feat: set _session to nil when unmounted
Browse files Browse the repository at this point in the history
  • Loading branch information
pklatka committed Apr 23, 2024
1 parent bc743ed commit 70ae93c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/turbo/ios/RNVisitableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class RNVisitableView: UIView, RNSessionSubscriber {

override func removeFromSuperview() {
super.removeFromSuperview()
_session = nil
controller = nil
}

Expand Down

0 comments on commit 70ae93c

Please sign in to comment.