Merge pull request #434 from bugout-dev/improve-dashboard

refetch
pull/436/head
Sergei Sumarokov 2021-11-16 01:15:35 +00:00 zatwierdzone przez GitHub
commit 3db7f34cf2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -218,6 +218,7 @@ const Analytics = () => {
url={s3PresignedURLs[timeRange]}
id={v4()}
type={v4()}
refetchLinks={dashboardLinksCache.refetch}
/>
</Flex>
);

Wyświetl plik

@ -12,12 +12,13 @@ timeMap[HOUR_KEY] = "hour";
timeMap[DAY_KEY] = "day";
timeMap[WEEK_KEY] = "week";
const SubscriptionReport = ({ timeRange, url, id, type }) => {
const SubscriptionReport = ({ timeRange, url, id, type, refetchLinks }) => {
const { data, isLoading } = usePresignedURL({
url: url,
isEnabled: true,
id: id,
type: type,
requestNewURLCallback: refetchLinks,
});
const plotMinW = "500px";
if (!data || isLoading) return <Spinner />;