Skip to content

Postpone popup show until platform is ready#934

Merged
pictos merged 8 commits intomainfrom
feature/sl/postpone-popup-show-until-platform-is-ready
Jan 27, 2023
Merged

Postpone popup show until platform is ready#934
pictos merged 8 commits intomainfrom
feature/sl/postpone-popup-show-until-platform-is-ready

Conversation

@bijington
Copy link
Copy Markdown
Contributor

@bijington bijington commented Jan 26, 2023

Description of Change

Introduces the approach of deferring a ShowPopup and ShowPopupAsync call to the OnNavigatedTo event if the IsPlatformEnabled flag is false. This matches how .NET MAUI provides similar support for things like DisplayAlert, etc.

Linked Issues

Possibly helps

PR Checklist

Additional information

Copy link
Copy Markdown
Member

@pictos pictos left a comment

Choose a reason for hiding this comment

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

@bijington thanks for it! This's a huge improvement. I've some suggestions

Comment thread src/CommunityToolkit.Maui/Views/Popup/PopupExtensions.shared.cs Outdated
Comment thread src/CommunityToolkit.Maui/Views/Popup/PopupExtensions.shared.cs Outdated
Comment thread src/CommunityToolkit.Maui/Views/Popup/PopupExtensions.shared.cs Outdated
@bijington bijington requested a review from pictos January 26, 2023 21:40
@bijington
Copy link
Copy Markdown
Contributor Author

@bijington thanks for it! This's a huge improvement. I've some suggestions

Great points! I should have addressed those now 👍

Comment thread src/CommunityToolkit.Maui/Views/Popup/PopupExtensions.shared.cs Outdated
Comment thread src/CommunityToolkit.Maui/Views/Popup/PopupExtensions.shared.cs
@pictos pictos enabled auto-merge (squash) January 27, 2023 01:56
@pictos pictos merged commit eb034d4 into main Jan 27, 2023
@pictos pictos deleted the feature/sl/postpone-popup-show-until-platform-is-ready branch January 27, 2023 06:55
@symbiogenesis
Copy link
Copy Markdown

Fantastic! When's the next preview release coming?

@pictos
Copy link
Copy Markdown
Member

pictos commented Jan 27, 2023

@symbiogenesis we don't have a time right now

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] InvalidOperationException on iOS when opening Popup from Modal dialog with NavigationPage [BUG] Crash when using Popup on 'OnAppearing'

3 participants