Giter Club home page Giter Club logo

redux-observable-cn's Introduction

Join the chat at https://gitter.im/redux-observable/redux-observable build status npm version npm downloads code climate Greenkeeper badge

基于 RxJS 5Redux 中间件 。 通过组合和取消异步动作去创建副作用。

https://redux-observable-cn.js.org/

安装

强依赖于 [email protected]redux,所以同样也要安装。

npm install --save redux-observable

重要: redux-observable 并没有给 Observable.prototype 添加任何 RxJS 操作符,所以你需要在入口导入你使用的或者所有操作符。 更多.

可选的适配器

Epics 默认使用 RxJS v5。 你可以通过适配器使用任何其他流库。(除了 RxJS v5 之外的)。

你也可以实现你自己的适配器:

const adapter = {
  input: input$ => /* 将 Observable 转化为你喜欢的流库 */,
  output: output$ => /* 将你喜欢的流库转化为 Observable */
};

参见现有适配器样例。牢记,虽然你仍然需要安装 RxJS v5, redux-observable 仅仅拉取了它内部需要的最小体积的 RxJS -不需要导入所有的 RxJS。

UMD

我们发布了 npm 包构件出的 UMD。 你可以通过 unpkg 来使用:

https://unpkg.com/redux-observable@latest/dist/redux-observable.min.js

观看介绍

Watch a video on redux-observable

JSBin 例子

看看实践中的 redux-observable,下面是一些简单的 JSBin 例子。

文档

https://redux-observable.js.org

讨论

Join the chat at https://gitter.im/redux-observable/redux-observable

欢迎每个人 Gitter channel!

定制的 Emoji

保存它:

将 redux-observable 的旋转 logo 添加到你的 Slack channel 中!Slack Instructions


*redux-observable 是一个社区驱动的项目和 Netflix 没有官方的附属关系。

:shipit:

redux-observable-cn's People

Contributors

bali182 avatar beckend avatar benlesh avatar bennett000 avatar berkeleytrue avatar billba avatar cmelion avatar darthdeus avatar greenkeeper[bot] avatar greenkeeperio-bot avatar guidsen avatar gusvargas avatar incrediblesound avatar istarkov avatar jayphelps avatar jdetle avatar jhen0409 avatar jiayihu avatar joshburgess avatar juangl avatar kwonoj avatar lasergoat avatar michalvankodev avatar morejs avatar nikabuligini avatar oliviertassinari avatar rgbkrk avatar sangka avatar sebald avatar thurt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.