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
|
||||
timeRange={timeRange}
|
||||
url={s3PresignedURLs[timeRange]}
|
||||
id={v4()}
|
||||
type={v4()}
|
||||
id={dashboardId}
|
||||
refetchLinks={dashboardLinksCache.refetch}
|
||||
/>
|
||||
</Flex>
|
||||
|
|
|
@ -12,12 +12,12 @@ timeMap[HOUR_KEY] = "hour";
|
|||
timeMap[DAY_KEY] = "day";
|
||||
timeMap[WEEK_KEY] = "week";
|
||||
|
||||
const SubscriptionReport = ({ timeRange, url, id, type, refetchLinks }) => {
|
||||
const SubscriptionReport = ({ timeRange, url, id, refetchLinks }) => {
|
||||
const { data, isLoading } = usePresignedURL({
|
||||
url: url,
|
||||
isEnabled: true,
|
||||
id: id,
|
||||
type: type,
|
||||
cacheType: timeRange,
|
||||
requestNewURLCallback: refetchLinks,
|
||||
});
|
||||
const plotMinW = "250px";
|
||||
|
|
Ładowanie…
Reference in New Issue