Skip to content

Conversation

@richbryant
Copy link
Contributor

What kind of change does this PR introduce?

Bug fix to resolve #2308

What is the current behavior?

Views inheriting from ReactiveComponentBase<T> and/or ReactiveLayoutComponentBase<T> crash on initialization

What is the new behavior?

Views inheriting from ReactiveComponentBase<T> and/or ReactiveLayoutComponentBase<T> do not crash on initialization

What might this PR break?

Nothing that ain't already broken

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

@richbryant richbryant requested a review from a team January 17, 2020 19:46
{
this.WhenAnyValue(x => x.ViewModel).Subscribe(_ => StateHasChanged());
var viewModelsPropertyChanged = this.WhenAnyValue(x => x.ViewModel)
var viewModelsChangedObservable = this.WhenAnyValue(x => x.ViewModel)
Copy link
Contributor

Choose a reason for hiding this comment

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

To keep the pr precise let's go back to the old ordering and variable names. Eg the view model change first and viewModelsPropertyChanged

Copy link
Contributor

@glennawatson glennawatson left a comment

Choose a reason for hiding this comment

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

Setting to request changes

@glennawatson glennawatson merged commit 9701006 into reactiveui:Investigate_ReactiveComponentBase Jan 17, 2020
@glennawatson
Copy link
Contributor

btw, this went to the wrong branch :(

@richbryant
Copy link
Contributor Author

Hah!

@lock lock bot locked and limited conversation to collaborators Apr 17, 2020
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.

2 participants