mirror of
https://github.com/streamich/react-use.git
synced 2026-01-18 14:06:52 +00:00
Merge pull request #1485 from Acmu/patch-1
`setState` is unnecessary in deps
This commit is contained in:
commit
5bd35c19d1
@ -10,7 +10,7 @@ const useSetState = <T extends object>(
|
||||
Object.assign({}, prevState, patch instanceof Function ? patch(prevState) : patch)
|
||||
);
|
||||
},
|
||||
[set]
|
||||
[]
|
||||
);
|
||||
|
||||
return [state, setState];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user