Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sultan99 authored Dec 3, 2022
1 parent 9d48da3 commit 4835254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ const unsubscribe = useUser.subscribe(state => {
unsubscribe() // canceling subscription 👆

// subscription to specific 👇 value
useUser.subscribe('address.street' => {
useUser.subscribe('address.street', () => {
console.log('User street was changed!')
})
```
Expand Down

0 comments on commit 4835254

Please sign in to comment.