Skip to content
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

removed async/awaits from pagemodel core methods #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

olexale
Copy link
Contributor

@olexale olexale commented Jan 23, 2016

One more (and last) portion of removing async/awaits.

Additionally I propose one breaking change: when _currentPage is null DisplayAlert and DisplayActionSheet methods should not silently work. According to current source code PageModelCoreMethods constructor invokes from ResolvePageModel only and in that case _currentPage should never be null, but let's say that by some reason it is. When I'm getting result from DisplayAlert I do expect that I'm getting user response and application business logic will rely on this. But with current implementation it is not true, because framework returned some value (false in that case). As for me NullPointerException is better than incorrect business logic, so I propose to remove "_currentPage != null" condition.

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.

1 participant