Skip to content

Commit d1054ba

Browse files
committed
docs: fix code samples
1 parent a61ee09 commit d1054ba

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/guide/global-options.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
If you find yourself passing around the same options to `useDocument()`, `useObject()`, ..., you can use the global options to avoid repeating yourself:
44

5-
<FirestoreExample>
5+
<FirebaseExample>
66

77
```ts
88
import { globalDatabaseOptions } from 'vuefire'
@@ -16,13 +16,13 @@ import { globalFirestoreOptions } from 'vuefire'
1616
globalFirestoreOptions.converter = ...
1717
```
1818

19-
</FirestoreExample>
19+
</FirebaseExample>
2020

2121
Changing these options will affect all calls to `useDocument()`, `useObject()`, ... in your application **and the Options API usage** as well (`$firestoreBind()`, `$rtdbBind()`).
2222

23-
In both scenarios, you need to make sure the returned objects contain their original `id` so other VueFire functionalities can work correctly. The easies way to do this is by reusing the default `serialize`/`converter`:
23+
In both scenarios, **you need to make sure the returned objects contain their original `id`** so other VueFire functionalities can work correctly. The easies way to do this is by reusing the default `serialize`/`converter`:
2424

25-
<FirestoreExample>
25+
<FirebaseExample>
2626

2727
```ts
2828
import { globalDatabaseOptions } from 'vuefire'
@@ -51,4 +51,4 @@ globalFirestoreOptions.converter = {
5151
}
5252
```
5353

54-
</FirestoreExample>
54+
</FirebaseExample>

src/database/subscribe.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import type { Query, DatabaseReference, DataSnapshot } from 'firebase/database'
3030
*/
3131
export interface _DatabaseRefOptions extends _DataSourceOptions {
3232
/**
33-
* Function to transform snapshots into data. Make sure to reuse the original serializer to add the object id. See
34-
* https://vuefire.vuejs.org/guide/global-options.html
33+
* Function to transform snapshots into data. **Make sure to reuse the original serializer to add the object `id`**.
34+
* See https://vuefire.vuejs.org/guide/global-options.html
3535
*/
3636
serialize?: DatabaseSnapshotSerializer
3737
}

0 commit comments

Comments
 (0)