Ignore specific ESLint rule

[MAILPOET-2693]
This commit is contained in:
Amine Ben hammou
2020-04-16 12:25:38 +02:00
committed by Veljko V
parent 98696f3080
commit f8f565d856

View File

@@ -27,6 +27,7 @@ export function useSetting(...path: string[]): [any, (value: any) => any] {
const setValue = useAction('setSetting');
return [
getValue(path),
React.useCallback((value) => setValue(path, value), path), // eslint-disable-line
// eslint-disable-next-line react-hooks/exhaustive-deps
React.useCallback((value) => setValue(path, value), path),
];
}