Enforce React Rules of Hooks with eslint (#24911)
This commit is contained in:
@@ -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));
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user