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
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Listen for realtime changes in a Firestore document with Reactfire. We'll use [`
27
27
1. Install reactfire and the Firebase SDK
28
28
29
29
```shell
30
-
npm i firebase reactfire
30
+
npm i firebase reactfire@canary
31
31
```
32
32
33
33
1. Create a world-readable document in Firestore.
@@ -43,7 +43,6 @@ Listen for realtime changes in a Firestore document with Reactfire. We'll use [`
43
43
```js
44
44
//...
45
45
import { FirebaseAppProvider } from'reactfire';
46
-
import*asfirebasefrom'firebase/app';
47
46
import'firebase/performance';
48
47
//...
49
48
```
@@ -71,7 +70,7 @@ Listen for realtime changes in a Firestore document with Reactfire. We'll use [`
71
70
```js
72
71
//...
73
72
import 'firebase/firestore';
74
-
import { UseFirestoreDoc } from 'reactfire';
73
+
import { useFirestoreDoc, useFirebaseApp } from 'reactfire';
75
74
//...
76
75
```
77
76
@@ -100,17 +99,18 @@ Listen for realtime changes in a Firestore document with Reactfire. We'll use [`
100
99
101
100
1. Render your component inside of a `Suspense` tag
102
101
103
-
We need to dothis because `useFirestoreDoc` throws a Promisewhile it is waiting for a response from Firestore. Suspense will catch the Promise and render `fallback` until the Promise is resolved.
102
+
> We need to dothis because `useFirestoreDoc` throws a Promisewhile it is waiting for a response from Firestore. Suspense will catch the Promise and render `fallback` until the Promise is resolved.
0 commit comments