-
-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-entrant loadView / viewDidLoad #3753
Comments
Specifically, the issue can be seen in the first screenshot, where |
Hello @jleandroperez, thanks for reaching out. |
Hi, I'm @jleandroperez's co-worker. Don't look for duplicate Since the view has not finished loading yet, The duplicate |
Hi @bjhomer, thanks for the clarification and @jleandroperez for the PR! As noted on the PR, we'd love to find a way to automatically test this, other than we think it's ready |
When performance tracking is enabled, loadView's swizzled implementation may result in a duplicate chain of events, that result in multiple viewDidLoad invocations, in our main app's VC. Fixes GH-3753 Co-authored-by: BJ Homer <bjhomer@gmail.com> Co-authored-by: Philipp Hofmann <ph.hofmann@pm.me>
Small follow up fixes for GH-3753.
Small follow up fixes for GH-3753.
When performance tracking is enabled, loadView's swizzled implementation may result in a duplicate chain of events, that result in multiple viewDidLoad invocations, in our main app's VC. Fixes getsentryGH-3753 Co-authored-by: BJ Homer <bjhomer@gmail.com> Co-authored-by: Philipp Hofmann <ph.hofmann@pm.me>
Small follow up fixes for getsentryGH-3753.
Platform
iOS
Installed
Swift Package Manager
Version
8.21.0
Steps to Reproduce
PerformanceTracking
and a profilingRate of 0.550% of the times we launch our app, Sentry's swizzled
loadView
method invokes the.view
property of the relevant ViewController.This ends up triggering two
viewDidLoad
invocations in our ViewController, and is causing duplication of UI objects (+ performance degradation).Expected Result
No
loadView
/viewDidLoad
duplicationActual Result
Our main viewController is getting x2
viewDidLoad
invocations. Please review the screenshots below:Are you willing to submit a PR?
Of course, PR will be up shortly. Thank you =)
The text was updated successfully, but these errors were encountered: