You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-11Lines changed: 6 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -12,20 +12,13 @@ Firebase and RxJS for all frameworks.
12
12
13
13
Status: Beta
14
14
15
-
16
-
---
17
-
18
-
> **WARNING**: This branch is the work in progress for version 6 of RxFire. [You can find version 5 here](https://github.com/FirebaseExtended/rxfire/tree/v5), if you're looking for documentation or to contribute to stable.
19
-
20
-
---
21
-
22
15
## Install
23
16
24
17
```bash
25
18
# npm
26
-
npm i rxfire@next firebase@next rxjs --save
19
+
npm i rxfire firebase rxjs --save
27
20
# yarn
28
-
yarn add rxfire@next firebase@next rxjs
21
+
yarn add rxfire firebase rxjs
29
22
```
30
23
31
24
Make sure to install Firebase and RxJS individually as they are peer dependencies of RxFire.
@@ -45,7 +38,7 @@ const citiesRef = query(
45
38
where('state', '==', 'CO')
46
39
);
47
40
48
-
collectionData(citiesRef, 'id')
41
+
collectionData(citiesRef, { idField: 'id' })
49
42
.pipe(
50
43
tap(cities=>console.log('This is just an observable!'))
51
44
)
@@ -75,7 +68,7 @@ const citiesRef = query(
75
68
where('state', '==', 'CO')
76
69
);
77
70
78
-
collectionData(citiesRef, 'id')
71
+
collectionData(citiesRef, { idField: 'id' })
79
72
.pipe(
80
73
switchMap(cities=> {
81
74
returncombineLatest(...cities.map(c=> {
@@ -114,6 +107,8 @@ import { } from 'rxfire/database';
0 commit comments