subrules sync time

This commit is contained in:
Gabe Yuan
2023-09-11 22:53:04 +08:00
parent 79612f8a1b
commit fa244b2097
5 changed files with 28 additions and 11 deletions

View File

@@ -798,7 +798,7 @@ function SubRules({ subRules }) {
setSelectedRules,
loading,
} = subRules;
const { dataCaches, updateDataCache, deleteDataCache } =
const { dataCaches, updateDataCache, deleteDataCache, reloadSync } =
useSyncCaches();
const handleSelect = (e) => {
@@ -806,6 +806,10 @@ function SubRules({ subRules }) {
selectSub(url);
};
useEffect(() => {
reloadSync();
}, [selectedRules, reloadSync]);
return (
<Stack spacing={3}>
<SubRulesEdit