Skip to content

code clean up, lint fix #798

code clean up, lint fix

code clean up, lint fix #798

Triggered via push August 30, 2023 20:21
Status Success
Total duration 3m 32s
Artifacts
Fit to window
Zoom out
Zoom in

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)