mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 05:12:14 +00:00
fix(lint): suppress react-hooks/set-state-in-effect on pre-existing sync patterns
CI now blocks on ESLint, which surfaced two pre-existing useEffect sync-from-server patterns. Annotated with targeted eslint-disable comments and a note that the proper fix lives in 1.4.0 alongside the settings-page split — refactoring derivation here would touch a 2100-line file.
This commit is contained in:
1 parent
53235a0fb7
commit
05142841fa
2 files changed
+8
No files matched your search
@@ -37,6 +37,7 @@ export function PasswordStrength({
|
||||
|
||||
useEffect(() => {
|
||||
if (!password) {
|
||||
// eslint-disable-next-line react-hooks/set-state-in-effect
|
||||
setResult(null);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user