Closed Nisthar closed 8 months ago
Linters usually scream at you if you don't pass setState
as a dependency, that might be the reason he did it. React docs (only found this in legacy) says you can omit it as a dependency, so passing it shouldn't be an issue either:
https://legacy.reactjs.org/docs/hooks-reference.html#usestate
Fixed in b12af6d
What's the point of passing the
setMessageHistory
function as a dependency?