Skip to content

Commit

Permalink
fix: πŸ› remove set dependencies in useSet hook
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Jan 5, 2020
1 parent 8a6ece1 commit 90ba9d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const useSet = <K>(initialSet = new Set<K>()): [Set<K>, Actions<K>] => {
remove: item => setSet(prevSet => new Set(Array.from(prevSet).filter(i => i !== item))),
reset: () => setSet(initialSet),
}),
[set, setSet]
[setSet]
);

const utils = {
Expand Down

0 comments on commit 90ba9d0

Please sign in to comment.