Enable automatic refetching for event theme queries

Added `refetchOnWindowFocus` and `refetchIntervalInBackground` options to the event theme query. This ensures data stays updated when switching tabs or in the background.
This commit is contained in:
2025-03-14 01:46:10 +01:00
parent 187f52bbe0
commit b7a9e3f981

View File

@@ -97,6 +97,8 @@ export const EventThemesProvider: React.FC<EventThemesProviderProps> = ({
error,
} = useQuery({
...listEventThemesOptions(),
refetchOnWindowFocus: "always",
refetchIntervalInBackground: true,
});
// Fetch specific theme