@vueuse/rxjs
Advanced tools
Comparing version 4.0.0-beta.17 to 4.0.0-beta.18
{ | ||
"name": "@vueuse/rxjs", | ||
"description": "Enables rxjs reactive functions in Vue", | ||
"version": "4.0.0-beta.17", | ||
"description": "Enables RxJS reactive functions in Vue", | ||
"version": "4.0.0-beta.18", | ||
"main": "index.cjs.js", | ||
@@ -6,0 +6,0 @@ "types": "index.d.ts", |
@@ -20,3 +20,3 @@ # @vueuse/rxjs | ||
- Rxjs | ||
- RxJS | ||
- [`from`](https://vueuse.js.org/?path=/story/add-ons-rxjs--from) — two wrappers around of the original functions to allow use ref objects | ||
@@ -35,6 +35,6 @@ - [`toObserver`](https://vueuse.js.org/?path=/story/add-ons-rxjs--toobserver) — sugar function to convert a ref in an observer | ||
```ts | ||
import { fromEvent, from, useObservable } from '@vueuse/rxjs' | ||
import { ref } from 'vue-demi' | ||
import { fromEvent, from, useObservable } from '@vueuse/rxjs' | ||
import { of, forkJoin } from 'rxjs' | ||
import { ajax } from "rxjs/ajax" | ||
import { ajax } from 'rxjs/ajax' | ||
import { take, mergeMap, concatAll, pluck, map, scan } from 'rxjs/operators' | ||
@@ -50,3 +50,3 @@ | ||
take(4), | ||
mergeMap(({id, userId, title}) => forkJoin({ | ||
mergeMap(({ id, userId, title }) => forkJoin({ | ||
id: of(id), | ||
@@ -53,0 +53,0 @@ comments: ajax.getJSON(`${BASE_URL}/posts/${id}/comments`).pipe( |
10603