From adcdad5e07b8b1fee1ec3813357e8754f3be90a0 Mon Sep 17 00:00:00 2001 From: aulisius Date: Wed, 14 Dec 2022 13:56:11 +0530 Subject: [PATCH] Reload GeneralSettings page every 8 seconds --- src/components/GeneralSettings.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/GeneralSettings.js b/src/components/GeneralSettings.js index c8699133..17d2b1be 100644 --- a/src/components/GeneralSettings.js +++ b/src/components/GeneralSettings.js @@ -5,7 +5,9 @@ import { DashboardContent } from "./DashboardContent"; export function GeneralSettings(props) { let { plugins } = props; - let cards = useCardManager(GeneralSettingsConfig(plugins)); + let cards = useCardManager(GeneralSettingsConfig(plugins), { + refreshInterval: 8 * 1000, + }); const isLoading = !(cards ?? []).every( (cardConfig) => cardConfig.isLoading == false );