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

Facade MvxViewModelInstanceRequest instance overwritten #3405

Merged
merged 2 commits into from May 21, 2019
Merged

Facade MvxViewModelInstanceRequest instance overwritten #3405

merged 2 commits into from May 21, 2019

Conversation

CMorooney
Copy link

If facade request returns a MvxViewModelInstanceRequest with an instance of a ViewModel, use that instance rather than load a new one for NavigationRouteRequest

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Returning a MvxViewModelInstanceRequest (with a VM instance) in an IMvxNavigationFacade results in that instance not being used for the resulting navigation. This change checks for an existing instance in the request and uses that instance instead of loading a new one.

⤵️ What is the current behavior?

🆕 What is the new behavior (if this is a feature change)?

💥 Does this PR introduce a breaking change?

no

🐛 Recommendations for testing

📝 Links to relevant issues/docs

🤔 Checklist before submitting

…nce of a ViewModel, use that instance rather than load a new one for NavigationRouteRequest
@CMorooney CMorooney requested a review from a team May 17, 2019 17:08
@dnfclas
Copy link

dnfclas commented May 17, 2019

CLA assistant check
All CLA requirements met.

…to an expected race condition not because of a behavior or logic change
@martijn00 martijn00 merged commit 09c8ae0 into MvvmCross:develop May 21, 2019
@martijn00 martijn00 added this to the 6.3.1 milestone May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants