Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upfeat: allow interaction handlers of any observable type #1261
Conversation
This comment has been minimized.
This comment has been minimized.
coveralls
commented
Feb 3, 2017
ghuntley
reviewed
Feb 3, 2017
|
ghuntley
reviewed
Feb 3, 2017
@@ -200,14 +200,16 @@ public IDisposable RegisterHandler(Func<InteractionContext<TInput, TOutput>, Tas | |||
/// <returns> | |||
/// A disposable which, when disposed, will unregister the handler. | |||
/// </returns> | |||
public IDisposable RegisterHandler(Func<InteractionContext<TInput, TOutput>, IObservable<Unit>> handler) | |||
public IDisposable RegisterHandler<TDontCare>(Func<InteractionContext<TInput, TOutput>, IObservable<TDontCare>> handler) |
This comment has been minimized.
This comment has been minimized.
ghuntley
Feb 3, 2017
Member
Should we keep public IDisposable RegisterHandler(Func<InteractionContext<TInput, TOutput>, IObservable<Unit>> handler)
as an alias method to the new signature but annotate it with [Obsolete("Please use RegisterHandler<T> instead?")]
as a migration path? I want to stop making hard public API contract changes. Your thoughts?
This comment has been minimized.
This comment has been minimized.
@ghuntley it's not a breaking change in the sense that if people were accidentally calling the non-observable version because their observable was not |
ghuntley
added
the
reactiveui-core
label
Feb 3, 2017
ghuntley
added this to the vNext milestone
Feb 3, 2017
ghuntley
approved these changes
Feb 3, 2017
Alright. Can you please update the docs and once done, self-merge. Sometimes in our release notes we draft up something more verbose and human to explain the rational behind a new feature (i.e. advertise the benefits) - this change would be a good candidate. |
ghuntley
changed the title
Allow interaction handlers of any observable type
feature: allow interaction handlers of any observable type
Feb 3, 2017
This comment has been minimized.
This comment has been minimized.
@ghuntley not sure which docs you mean? Nothing has changed from a consumer point of view apart from the API being more forgiving of the observable type. But the docs don't talk about that any way. |
This comment has been minimized.
This comment has been minimized.
Apologies, an assumption on my part that documentation would need updating. If they don't, they don't. I've started thinking about making this a standard question when merging pull requests - does the doc need updating and if so please do it. I'm keen to merge the documentation repo back into the main RxUI repo at some stage this year so documentation gets versioned along side the code. |
kentcb commentedFeb 3, 2017
Fixes #1260.