Skip to content

Commit 5d15983

Browse files
committed
Fix docs/api/Store.md Example
1 parent 42e7afd commit 5d15983

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/Store.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ function select(state) {
101101
return state.some.deep.property
102102
}
103103

104-
let currentValue
104+
let currentValue = select(store.getState())
105105
function handleChange() {
106106
let previousValue = currentValue
107107
currentValue = select(store.getState())
108-
108+
109109
if (previousValue !== currentValue) {
110110
console.log('Some deep nested property changed from', previousValue, 'to', currentValue)
111111
}

0 commit comments

Comments
 (0)