Skip to content

Commit 6cf1d09

Browse files
committed
docs: adapt reset
1 parent c6644b9 commit 6cf1d09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/guide/options-api-realtime-data.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,17 +240,17 @@ It's also possible to customize this behavior when _binding_ by using the `reset
240240
```js
241241
// using a boolean value for reset
242242
await this.$rtdbBind('user', userRef)
243-
this.$rtdbBind('user', otherUserRef, { reset: false })
243+
this.$rtdbBind('user', otherUserRef, { reset: true })
244244
// while the user is fetched
245-
// this.user === { name: 'Eduardo' }
245+
// this.user === null
246246
```
247247
248248
```js
249249
// using a boolean value for reset
250250
await this.$firestoreBind('user', userRef)
251-
this.$firestoreBind('user', otherUserRef, { reset: false })
251+
this.$firestoreBind('user', otherUserRef, { reset: true })
252252
// while the user is fetched
253-
// this.user === { name: 'Eduardo' }
253+
// this.user === null
254254
```
255255
256256
</FirebaseExample>

0 commit comments

Comments
 (0)