-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update and fix to ReactiveComponentBase and ReactiveLayoutComponentBase #2318
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
Update and fix to ReactiveComponentBase and ReactiveLayoutComponentBase #2318
Conversation
| { | ||
| this.WhenAnyValue(x => x.ViewModel).Subscribe(_ => StateHasChanged()); | ||
| var viewModelsPropertyChanged = this.WhenAnyValue(x => x.ViewModel) | ||
| var viewModelsChangedObservable = this.WhenAnyValue(x => x.ViewModel) |
There was a problem hiding this comment.
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
glennawatson
left a comment
There was a problem hiding this 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
|
btw, this went to the wrong branch :( |
|
Hah! |
What kind of change does this PR introduce?
Bug fix to resolve #2308
What is the current behavior?
Views inheriting from
ReactiveComponentBase<T>and/orReactiveLayoutComponentBase<T>crash on initializationWhat is the new behavior?
Views inheriting from
ReactiveComponentBase<T>and/orReactiveLayoutComponentBase<T>do not crash on initializationWhat might this PR break?
Nothing that ain't already broken
Please check if the PR fulfills these requirements