mirror of
https://github.com/streamich/react-use.git
synced 2026-01-25 14:17:16 +00:00
setState is unnecessary in deps
This commit is contained in:
parent
9560255139
commit
f0d05c665a
@ -8,7 +8,7 @@ const useSetState = <T extends object>(
|
||||
patch => {
|
||||
set(prevState => Object.assign({}, prevState, patch instanceof Function ? patch(prevState) : patch));
|
||||
},
|
||||
[set]
|
||||
[]
|
||||
);
|
||||
|
||||
return [state, setState];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user