【问题标题】:IScreen.Router.Navigate.Execute not working with ReactiveUI 7 on Xamarin.FormsIScreen.Router.Navigate.Execute 不适用于 Xamarin.Forms 上的 ReactiveUI 7
【发布时间】:2016-09-24 07:36:38
【问题描述】:

我在这里有一个带有 RxUI 6.5.2 的 Xamarin.Forms 项目和一个使用路由器的非常简单的导航,它正在工作:

https://github.com/GiusepeCasagrande/RoutingSimpleSample/tree/ReactiveUI_6_5

但是(几乎)相同的代码不适用于 RxUI 7: https://github.com/GiusepeCasagrande/RoutingSimpleSample/tree/master

谁能指出我做错了什么或者这是某种错误?

【问题讨论】:

    标签: xamarin.forms reactiveui


    【解决方案1】:

    正如@kentcb 向我指出的那样https://github.com/reactiveui/ReactiveUI/issues/1166

    Execute 返回 IObservable,并且是惰性的。你必须订阅它 让任何事情发生。

    所以我更新了项目,现在它可以完美运行了!

    【讨论】:

      猜你喜欢
      • 2019-12-04
      • 2015-01-06
      • 1970-01-01
      • 2017-08-06
      • 2021-07-01
      • 2020-09-29
      • 1970-01-01
      • 2019-05-06
      • 1970-01-01
      相关资源
      最近更新 更多