kopia lustrzana https://github.com/bugout-dev/moonstream
Merge pull request #466 from bugout-dev/fix-s3-multiple-fetch
fix query keys to be correct to stop refetchespull/467/head
commit
f3afe25e67
|
@ -216,8 +216,7 @@ const Analytics = () => {
|
||||||
<SubscriptionReport
|
<SubscriptionReport
|
||||||
timeRange={timeRange}
|
timeRange={timeRange}
|
||||||
url={s3PresignedURLs[timeRange]}
|
url={s3PresignedURLs[timeRange]}
|
||||||
id={v4()}
|
id={dashboardId}
|
||||||
type={v4()}
|
|
||||||
refetchLinks={dashboardLinksCache.refetch}
|
refetchLinks={dashboardLinksCache.refetch}
|
||||||
/>
|
/>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
|
@ -12,12 +12,12 @@ timeMap[HOUR_KEY] = "hour";
|
||||||
timeMap[DAY_KEY] = "day";
|
timeMap[DAY_KEY] = "day";
|
||||||
timeMap[WEEK_KEY] = "week";
|
timeMap[WEEK_KEY] = "week";
|
||||||
|
|
||||||
const SubscriptionReport = ({ timeRange, url, id, type, refetchLinks }) => {
|
const SubscriptionReport = ({ timeRange, url, id, refetchLinks }) => {
|
||||||
const { data, isLoading } = usePresignedURL({
|
const { data, isLoading } = usePresignedURL({
|
||||||
url: url,
|
url: url,
|
||||||
isEnabled: true,
|
isEnabled: true,
|
||||||
id: id,
|
id: id,
|
||||||
type: type,
|
cacheType: timeRange,
|
||||||
requestNewURLCallback: refetchLinks,
|
requestNewURLCallback: refetchLinks,
|
||||||
});
|
});
|
||||||
const plotMinW = "250px";
|
const plotMinW = "250px";
|
||||||
|
|
Ładowanie…
Reference in New Issue