Skip to content

Commit 1e46110

Browse files
authored
Merge pull request reduxjs#1876 from wouterds/patch-1
Fixed wrong unsubscribe example
2 parents d18a977 + c9f1334 commit 1e46110

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)