Enforce React Rules of Hooks with eslint (#24911)
This commit is contained in:
parent
955179fc55
commit
d9b93bd15e
6 changed files with 12 additions and 0 deletions
|
@ -26,6 +26,7 @@ const mapDispatchToProps = dispatch => ({
|
|||
},
|
||||
|
||||
onClose (value) {
|
||||
// eslint-disable-next-line react-hooks/rules-of-hooks -- this is not a react hook
|
||||
dispatch(useLanguage(value));
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue