Skip to content

Commit

Permalink
Enable crossChainDataComplete flag on the Metric endpoint by default (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJem authored Oct 13, 2023
1 parent 3f435b3 commit edd3de0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hooks/useFederatedSubgraphQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,17 +231,20 @@ export const useMetricsQuery = ({
startDate,
includeContentRecords,
ignoreCache,
crossChainDataComplete,
}: {
startDate?: string | null;
includeContentRecords?: boolean;
ignoreCache?: boolean;
crossChainDataComplete?: boolean;
}) => {
return useFederatedSubgraphQuery({
operationName: "paginated/metrics",
input: {
startDate: startDate || "",
includeRecords: includeContentRecords || false,
ignoreCache: ignoreCache || false,
crossChainDataComplete: crossChainDataComplete || true,
},
enabled: startDate != null,
retry: 3, // Queries with long periods and with includeRecords = true will take a while if not cached, leading to a timeout
Expand Down

0 comments on commit edd3de0

Please sign in to comment.