Merge pull request #1485 from Acmu/patch-1

`setState` is unnecessary in deps
This commit is contained in:
Anton Zinovyev 2021-04-06 11:26:36 +03:00 committed by GitHub
commit 5bd35c19d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ const useSetState = <T extends object>(
Object.assign({}, prevState, patch instanceof Function ? patch(prevState) : patch)
);
},
[set]
[]
);
return [state, setState];