Skip to content

Commit c9f1334

Browse files
authored
Fixed wrong unsubscribe example
1 parent d18a977 commit c9f1334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/Store.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function handleChange() {
120120
}
121121

122122
let unsubscribe = store.subscribe(handleChange)
123-
handleChange()
123+
unsubscribe()
124124
```
125125

126126
<hr>

0 commit comments

Comments
 (0)