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

[BUG] Setting custom ViewContractObservable on RoutedViewHost is not working #3207

Open
deryaza opened this issue Mar 14, 2022 · 0 comments
Open
Labels

Comments

@deryaza
Copy link

deryaza commented Mar 14, 2022

Describe the bug

Setting custom ViewContractObservable on RoutedViewHost is not passing contract to the view resolver

Steps To Reproduce

RoutedViewHost.ViewContractObservable = Observable.Return("contract");
RoutedViewHost.Router.Navigate.Execute(vmWithViewWithContract);

Environment

  • OS: windows
  • Device: wpf, windows
  • ReactiveUI Version: cloned from commit 8628353

Additional context

this.WhenAnyObservable(x => x.ViewContractObservable).Do(x => _viewContract = x).StartWith(ViewContract),
removing StartWith in this line resolves it (not sure why tho).

@deryaza deryaza added the bug label Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant