mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-26 11:44:28 +08:00
fix(DataSettings): update dependency array in useEffect to prevent unnecessary re-renders (#10039)
This commit is contained in:
parent
1cd89561ab
commit
8a67a87461
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user