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: docs/use.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,12 @@ function FirebaseComponents({ children }) {
88
88
89
89
Some products benefit from asynchronous initialization. For that, ReactFire has hooks like `useInitFirestore` and `useInitRemoteConfig`. Learn more about these in the individual product sections below.
90
90
91
+
If you _don't_ set up a provider for a Firebase product SDK, you'll receive the following error:
92
+
93
+
```
94
+
SDK not found. useSdk must be called from within a provider
95
+
```
96
+
91
97
### Connect to the Firebase Local Emulator Suite
92
98
93
99
Connect a product SDK to the emulator before passing it to a provider. For example, to connect to the Auth and Realtime Database emulators:
@@ -158,7 +164,7 @@ See the [App Check setup guide in the Firebase docs](https://firebase.google.com
158
164
159
165
## Auth
160
166
161
-
The following samples assume that `FirebaseAppProvider` and `AuthProvider` components exist higher up the component tree.
167
+
The following samples assume that `FirebaseAppProvider` and `AuthProvider` components exist higher up the component tree (see [setup instructions](#setup) for more detail).
The following samples assume that `FirebaseAppProvider` and `FirestoreProvider` components exist higher up the component tree.
226
+
The following samples assume that `FirebaseAppProvider` and `FirestoreProvider` components exist higher up the component tree (see [setup instructions](#setup) for more detail).
221
227
222
228
### Access data offline
223
229
@@ -303,7 +309,7 @@ function FavoriteAnimals() {
303
309
304
310
## Cloud Functions
305
311
306
-
The following samples assume that `FirebaseAppProvider` and `FunctionsProvider` components exist higher up the component tree.
312
+
The following samples assume that `FirebaseAppProvider` and `FunctionsProvider` components exist higher up the component tree (see [setup instructions](#setup) for more detail).
307
313
308
314
### Call a function based on user interaction
309
315
@@ -342,7 +348,7 @@ function LikeCount({ videoId }) {
342
348
343
349
## Realtime Database
344
350
345
-
The following samples assume that `FirebaseAppProvider` and `RealtimeDatabaseProvider` components exist higher up the component tree.
351
+
The following samples assume that `FirebaseAppProvider` and `RealtimeDatabaseProvider` components exist higher up the component tree (see [setup instructions](#setup) for more detail).
346
352
347
353
### Show an object
348
354
@@ -389,7 +395,7 @@ function AnimalsList() {
389
395
390
396
## Cloud Storage for Firebase
391
397
392
-
The following samples assume that `FirebaseAppProvider` and `StorageProvider` components exist higher up the component tree.
398
+
The following samples assume that `FirebaseAppProvider` and `StorageProvider` components exist higher up the component tree (see [setup instructions](#setup) for more detail).
393
399
394
400
### Fetch and show an image
395
401
@@ -429,7 +435,7 @@ function UploadProgress({ uploadTask, storageRef }) {
429
435
430
436
## Remote Config
431
437
432
-
The following samples assume that `FirebaseAppProvider` and `RemoteConfigProvider` components exist higher up the component tree.
438
+
The following samples assume that `FirebaseAppProvider` and `RemoteConfigProvider` components exist higher up the component tree (see [setup instructions](#setup) for more detail).
0 commit comments