Question

Following my earlier question about Reactive Extensions Instant Search for WPF/MVVM, wherein...

I would like to implement a TextBox where, as you type, results appear instantly in another ListBox

...I found that this problem had originally been addressed by ReactiveUI and there was a relatively straightforward solution posted in the ReactiveUI blog and documentation.

Fast forward to ReactiveUI 5, and the API has been changed, and the old examples don't work any more. ReactiveAsyncCommand has been merged with ReactiveCommand; however ReactiveCommand doesn't seem to have a RegisterAsyncFunction() method necessary to get things working.

Unfortunately the ReactiveUI documentation is very much out of date. How can I get this sample working with the new API?

Was it helpful?

Solution

Are you sure you're using ReactiveUI 5.x? RegisterAsyncFunction definitely still exists, here's where it is:

https://github.com/reactiveui/ReactiveUI/blob/master/ReactiveUI/ReactiveCommand.cs#L273

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top