-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: change signature of CommandBinderImplementation #2766
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
fix: change signature of CommandBinderImplementation #2766
Conversation
make BindToObject, ResolveView, and OAPH Nullable Fix some other code standard issues in ReactiveUI project
Updated CanActiveate to fix a bug, added tests to cover the three possibilities Updated CommandBinder to fix a bug when using events, added tests, but outstanding bug with Func<T> to IObservable<T> and Command parameter types returning Reactive.Unit instead of T Commit to get update of CodeCov report
Coverage should be at maximum for this class, the final null check I believe can never be null as all is checked prior to the reflection being called
…generate codecov report Updated IDE0046 to suggestion as requested
As I was unable to resolve the Func<T> to Observable<T> I changed the signature to Expresssion<Func<TViewmodel, TParm>>, removed the option for generating a Command for the Parameter as can convert Expresssion<Func<TViewmodel, TParm>> to IObservable<TParam>
Codecov Report
@@ Coverage Diff @@
## main #2766 +/- ##
==========================================
+ Coverage 62.55% 62.84% +0.29%
==========================================
Files 133 134 +1
Lines 4687 4686 -1
==========================================
+ Hits 2932 2945 +13
+ Misses 1755 1741 -14
Continue to review full report at Codecov.
|
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What kind of change does this PR introduce?
bug fix
What is the current behaviour?
CommandBinderImplementation BindCommand has a overload that uses Func param this fails to be bound to a Command and the Observable only fires once
What is the new behaviour?
CommandBinderImplementation BindCommand has a overload that uses Expression<Func<TViewModel, T> param this is convertable to a IObservable and fires when required
What might this PR break?
As this method is not a Extension method the usage may be low the signature has changed but uses a variable that is already required in addition to a property
Please check if the PR fulfils these requirements
Other information: