Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions firestore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ There are 2 variants of each hook:

All hooks can be imported from `react-firebase-hooks/firestore`, e.g.

```
```js
import { useCollection } from 'react-firebase-hooks/firestore';
```

Expand All @@ -31,7 +31,7 @@ List of Cloud Firestore hooks:

### useCollection

```
```js
const [snapshot, loading, error] = useCollection(query, options);
```

Expand Down Expand Up @@ -86,7 +86,7 @@ const FirestoreCollection = () => {

### useCollectionOnce

```
```js
const [snapshot, loading, error] = useCollectionOnce(query, options);
```

Expand All @@ -106,7 +106,7 @@ Returns:

### useCollectionData

```
```js
const [values, loading, error] = useCollectionData<T>(query, options);
```

Expand All @@ -128,7 +128,7 @@ Returns:

### useCollectionDataOnce

```
```js
const [values, loading, error] = useCollectionDataOnce<T>(query, options);
```

Expand All @@ -149,7 +149,7 @@ Returns:

### useDocument

```
```js
const [snapshot, loading, error] = useDocument(reference, options);
```

Expand Down Expand Up @@ -193,7 +193,7 @@ const FirestoreDocument = () => {

### useDocumentOnce

```
```js
const [snapshot, loading, error] = useDocumentOnce(reference, options);
```

Expand All @@ -213,7 +213,7 @@ Returns:

### useDocumentData

```
```js
const [value, loading, error] = useDocumentData<T>(reference, options);
```

Expand All @@ -235,7 +235,7 @@ Returns:

### useDocumentDataOnce

```
```js
const [value, loading, error] = useDocumentDataOnce<T>(reference, options);
```

Expand Down