Skip to content

Conversation

@kentcb
Copy link
Contributor

@kentcb kentcb commented Sep 18, 2016

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

Bug fix.

What is the current behavior? (You can also link to an open issue here)

See #1081.

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

The BindCommand overload taking a Func<TParam> has been removed. It has never worked, and there is simply no way to reasonably implement it.

Does this PR introduce a breaking change?

Yes, insofar as people are using the faulty BindCommand overload (in which case it won't be working for them properly anyway)>

Please check if the PR fulfills these requirements

This commit fixes reactiveui#1081 by removing the implementation of BindCommand that
takes a Func<TParam>. This implementation has never worked - the command
parameter was never passed into the IObservable<object> that the binding
infrastructure uses to resolve the command parameter. Moreover, it never
could work in the fashion advertised. Since it is just a function, there
is no way of knowing when to re-evaluate it. Thus, the observable passed
into the binding infrastructure can only evaluate the function once, which
makes the entire overload pointless.
@kentcb kentcb merged commit 87075a5 into reactiveui:rxui7-master Oct 27, 2016
@ghuntley ghuntley modified the milestone: 7.0.0 Nov 6, 2016
glennawatson pushed a commit that referenced this pull request Mar 23, 2019
Remove BindCommand implementation taking Func<TParam>.
@lock lock bot locked and limited conversation to collaborators Jun 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants