Skip to content

Commit

Permalink
Add missing dep
Browse files Browse the repository at this point in the history
  • Loading branch information
jlfwong committed May 25, 2020
1 parent e9e1b28 commit 02d2f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/preact-redux.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function useSelector<T, U>(selector: (t: T) => U): U {
return store.subscribe(() => {
setValue(getValueFromStore())
})
}, [getValueFromStore])
}, [store, getValueFromStore])

return value
}

0 comments on commit 02d2f48

Please sign in to comment.