Skip to content

Commit 4835254

Browse files
authored
Update README.md
1 parent 9d48da3 commit 4835254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ const unsubscribe = useUser.subscribe(state => {
267267
unsubscribe() // canceling subscription 👆
268268

269269
// subscription to specific 👇 value
270-
useUser.subscribe('address.street' => {
270+
useUser.subscribe('address.street', () => {
271271
console.log('User street was changed!')
272272
})
273273
```

0 commit comments

Comments
 (0)