RxJS cache

Playground for RxJS 5.0.0 with ES2015 (Babel)

by Hiroshi Kurokawa

HTML

<script src="https://npmcdn.com/@reactivex/[email protected]/dist/global/Rx.umd.js"></script>

Babel + JSX

let i = 0;
const single = Rx.Observable.create(() => i++);

single.subscribe((x) => console.log(), (err) => console.error(err));
single.subscribe((x) => console.log(), (err) => console.error(err));