简体   繁体   English

使用 Falcor 或 Relay 响应 Rxjs

[英]React Rxjs with Falcor or Relay

I have been playing with ReactiveX for a bit and really like the approach.我一直在玩 ReactiveX 并且非常喜欢这种方法。 I have also been following Relay and Falcor for a while and understand the advantages of declarative data fetching.我也关注 Relay 和 Falcor 一段时间,并了解声明式数据获取的优势。

I have seen people integrating react, redux with falcor, but have not seen any attempts to integrate React, Rxjs with either Relay or Falcor.我见过有人将 react、redux 与 falcor 集成在一起,但还没有看到任何将 React、Rxjs 与 Relay 或 Falcor 集成的尝试。

So I wanted to write a simple todo example, but before that wanted to ask whether it is a sound combination at all.所以我想写一个简单的todo例子,但在此之前想问问它是否是一个声音组合。 Are there compatible and whether some advantages of one approach will negatively affect advantages of others.是否兼容以及一种方法的某些优势是否会对其他方法的优势产生负面影响。

Also if anyone can share some resources on this topic please do :)另外,如果有人可以分享有关此主题的一些资源,请执行 :)

There are several libraries that I found: https://github.com/trxcllnt/reaxtor no React js though https://github.com/FourSS/refar我发现了几个库: https : //github.com/trxclllnt/reaxtor虽然https://github.com/FourSS/refar没有 React js

UPDATE: there is an attempt by meteor developers to create their own version of relay using reactive graphql see Apollo Project They use observables for watch queries更新:meteor 开发人员尝试使用反应式 graphql 创建他们自己的中继版本,请参阅Apollo 项目他们使用 observables 进行手表查询

Also there is a good library called relate which you can integrate with rxjs redux style state machine还有一个叫做相关的好库,你可以将它与 rxjs redux 风格的状态机集成

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM