code clean up, lint fix #798
Annotations
4 errors and 2 warnings
patientsearch/src/js/context/PatientListContextProvider.js#L1
'lazy' is defined but never used (no-unused-vars)
|
patientsearch/src/js/context/PatientListContextProvider.js#L1
'Suspense' is defined but never used (no-unused-vars)
|
patientsearch/src/js/context/SettingContextProvider.js#L37
'hasAppSettings' is defined but never used (no-unused-vars)
|
patientsearch/src/js/context/SettingContextProvider.js#L37
'getAppSettingByKey' is defined but never used (no-unused-vars)
|
patientsearch/src/js/context/SettingContextProvider.js#L11
The 'hasAppSettings' function makes the dependencies of useMemo Hook (at line 33) change on every render. To fix this, wrap the definition of 'hasAppSettings' in its own useCallback() Hook (react-hooks/exhaustive-deps)
|
patientsearch/src/js/context/SettingContextProvider.js#L13
The 'getAppSettingByKey' function makes the dependencies of useMemo Hook (at line 33) change on every render. Move it inside the useMemo callback. Alternatively, wrap the definition of 'getAppSettingByKey' in its own useCallback() Hook (react-hooks/exhaustive-deps)
|