File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -240,17 +240,17 @@ It's also possible to customize this behavior when _binding_ by using the `reset
240
240
` ` ` js
241
241
// using a boolean value for reset
242
242
await this .$rtdbBind (' user' , userRef)
243
- this .$rtdbBind (' user' , otherUserRef, { reset: false })
243
+ this .$rtdbBind (' user' , otherUserRef, { reset: true })
244
244
// while the user is fetched
245
- // this.user === { name: 'Eduardo' }
245
+ // this.user === null
246
246
` ` `
247
247
248
248
` ` ` js
249
249
// using a boolean value for reset
250
250
await this .$firestoreBind (' user' , userRef)
251
- this .$firestoreBind (' user' , otherUserRef, { reset: false })
251
+ this .$firestoreBind (' user' , otherUserRef, { reset: true })
252
252
// while the user is fetched
253
- // this.user === { name: 'Eduardo' }
253
+ // this.user === null
254
254
` ` `
255
255
256
256
</FirebaseExample>
You can’t perform that action at this time.
0 commit comments