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: packages/rxfire/README.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Make sure to install Firebase and RxJS individually as they are peer dependencie
26
26
## Example use:
27
27
28
28
```ts
29
-
import*asfirebasefrom'firebase/app';
29
+
importfirebasefrom'firebase/app';
30
30
import'firebase/firestore';
31
31
import { collectionData } from'rxfire/firestore';
32
32
import { tap } from'rxjs/operators';
@@ -49,7 +49,7 @@ RxJS provides multiple operators and creation methods for combining observable s
49
49
The example below streams a list of "cities" from Firestore and then retrieves their image from a Cloud Storage bucket. Both tasks are asynchronous but RxJS makes it easy to combine these tasks together.
50
50
51
51
```ts
52
-
import*asfirebasefrom'firebase/app';
52
+
importfirebasefrom'firebase/app';
53
53
import'firebase/firestore';
54
54
import'firebase/storage';
55
55
import { collectionData } from'rxfire/firestore';
@@ -79,7 +79,7 @@ collectionData(citiesRef, 'id')
79
79
RxFire is a complementary library to Firebase. It is not meant to wrap the entire Firebase SDK. RxFire's purpose is to simplify async streams from Firebase. You need to import the Firebase SDK and initialize an app before using RxFire.
80
80
81
81
```ts
82
-
import*asfirebasefrom'firebase/app';
82
+
importfirebasefrom'firebase/app';
83
83
import'firebase/storage'; // import only the features needed
84
84
import { getDownloadURL } from'rxfire/storage';
85
85
@@ -104,7 +104,7 @@ import { } from 'rxfire/functions';
104
104
RxFire is a set of functions. Most functions create observables and from there you can use regular RxJS operators. Some functions are custom operators. But at the end of the day, it's all just functions. This is important for **tree shaking**. Any unused functions are stripped from your final build if you use a module bundler like Webpack or Rollup.
105
105
106
106
```ts
107
-
import*asfirebasefrom'firebase/app';
107
+
importfirebasefrom'firebase/app';
108
108
import'firebase/storage';
109
109
import { getDownloadURL, put/* not used! */ } 'rxfire/storage';
0 commit comments