Skip to content

Fix some view lifecycle inconsistencies#40

Merged
mokagio merged 3 commits intotrunkfrom
mokagio/view-will-disappear
Jun 20, 2023
Merged

Fix some view lifecycle inconsistencies#40
mokagio merged 3 commits intotrunkfrom
mokagio/view-will-disappear

Conversation

@mokagio
Copy link
Contributor

@mokagio mokagio commented Jun 20, 2023

I run into this while looking into wordpress-mobile/WordPress-iOS#20849


PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants release notes and have added them to the appropriate section in the CHANGELOG.md if necessary.

mokagio added 3 commits June 20, 2023 14:41
There are reasons to believe the method in `UIViewController` to be
doing nothing: https://stackoverflow.com/a/51995637/809944

However, given we don't know for sure and that the behavior might change
at any time, it seems wise to call it.
@mokagio mokagio marked this pull request as ready for review June 20, 2023 05:29
@mokagio mokagio enabled auto-merge June 20, 2023 05:30
Copy link

@staskus staskus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! This is an easy way to get into weird crashes and unexpected behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants