fix(DataSettings): update dependency array in useEffect to prevent unnecessary re-renders (#10039)

This commit is contained in:
beyondkmp 2025-09-08 13:02:23 +08:00 committed by GitHub
parent 1cd89561ab
commit 8a67a87461
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -574,7 +574,9 @@ const DataSettings: FC = () => {
}
handleDataMigration()
}, [setTimeoutTimer, t])
// eslint-disable-next-line react-hooks/exhaustive-deps
// dont add others to deps
}, [])
const onSkipBackupFilesChange = (value: boolean) => {
setSkipBackupFile(value)