fix: dependency array

This commit is contained in:
_
2021-09-07 22:37:06 +08:00
parent aa5ceac071
commit c0c01450d3
+3 -2
View File
@@ -99,10 +99,10 @@ export const [UseDataProvider, useData] = constate(() => {
return isLegacyTravelRecordUnlocked && isLegacyBookmarkLocationUnlocked;
}, [
legacyTravelRecord,
isTravelRecordUnlocked,
legacyBookmarkLocation,
isBookmarkLocationUnlocked,
hasLegacyTravelRecord,
hasLegacyBookmarkLocation,
]);
const handleUnlock = useCallback(
@@ -137,6 +137,7 @@ export const [UseDataProvider, useData] = constate(() => {
isEncrypted,
isLegacyBookmarkLocationEncrypted,
isLegacyTravelRecordEncrypted,
initPassword,
]
);