kopia lustrzana https://github.com/bugout-dev/moonstream
refetch
rodzic
d3afdffaec
commit
b0cb31860a
|
@ -218,6 +218,7 @@ const Analytics = () => {
|
|||
url={s3PresignedURLs[timeRange]}
|
||||
id={v4()}
|
||||
type={v4()}
|
||||
refetchLinks={dashboardLinksCache.refetch}
|
||||
/>
|
||||
</Flex>
|
||||
);
|
||||
|
|
|
@ -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 />;
|
||||
|
|
Ładowanie…
Reference in New Issue