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
// create useFirestore that uses another redux store
29
-
constuseFirestore=createUseFirestore()
30
-
31
-
// use the useFirestore to wrap a component
32
-
exportdefaultuseFirestore(SomeComponent)
33
-
```
34
-
35
-
Returns **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** Higher Order Component which accepts an array of
36
-
watchers config and wraps a React Component
37
-
38
7
## useFirestore
39
8
40
-
**Extends React.Component**
41
-
42
9
React hook that return firestore object.
43
10
Firestore instance is gathered from `store.firestore`, which is attached
44
11
to store by the store enhancer (`reduxFirestore`) during setup of
@@ -54,12 +21,15 @@ import { useFirestore } from 'react-redux-firebase'
0 commit comments