RxJS sequence equivalent to promise.then()?

前端 未结 8 1389
南旧
南旧 2020-11-28 05:12

I used to develop a lot with promise and now I am moving to RxJS. The doc of RxJS doesn\'t provide a very clear example on how to move from promise chain to observer sequenc

8条回答
  •  一生所求
    2020-11-28 05:20

    As far as i just found out, if you return a result in a flatMap, it converts it to an Array, even if you returned a string.

    But if you return an Observable, that observable can return a string;

提交回复
热议问题