mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 14:59:27 +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()
|
handleDataMigration()
|
||||||
}, [setTimeoutTimer, t])
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
// dont add others to deps
|
||||||
|
}, [])
|
||||||
|
|
||||||
const onSkipBackupFilesChange = (value: boolean) => {
|
const onSkipBackupFilesChange = (value: boolean) => {
|
||||||
setSkipBackupFile(value)
|
setSkipBackupFile(value)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user