Skip to content
Open
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
Update options-api-realtime-data.md
Currently the explanation for the reset is backwards, saying that you should send `true` if you want to `keep current value`. In fact, you should send `false` to keep the current value, and `true` to replace it with null.
  • Loading branch information
darrelfrancis authored May 6, 2024
commit 6f0d927909b285c0b148bff1b69240ee7598f2fb
4 changes: 2 additions & 2 deletions docs/guide/options-api-realtime-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,12 @@ this.$databaseUnbind('user', () => ({ name: 'unregistered' }))
```

```js
// default behavior
// default behavior is to keep current value
this.$firestoreUnbind('user')
this.$firestoreUnbind('user', false)
// this.user === { name: 'Eduardo' }

// using a boolean value for reset to keep current value
// if you send Boolean true in the reset parameter, the value will change to null
this.$firestoreUnbind('user', true)
// this.user === null

Expand Down