feat(financials-v2): add financial statements endpoint and query plumbing
This commit is contained in:
@@ -6,6 +6,7 @@ import { useCallback } from 'react';
|
||||
import {
|
||||
aiReportQueryOptions,
|
||||
companyAnalysisQueryOptions,
|
||||
companyFinancialStatementsQueryOptions,
|
||||
filingsQueryOptions,
|
||||
holdingsQueryOptions,
|
||||
latestPortfolioInsightQueryOptions,
|
||||
@@ -37,6 +38,13 @@ export function useLinkPrefetch() {
|
||||
router.prefetch(financialsHref);
|
||||
|
||||
void queryClient.prefetchQuery(companyAnalysisQueryOptions(normalizedTicker));
|
||||
void queryClient.prefetchQuery(companyFinancialStatementsQueryOptions({
|
||||
ticker: normalizedTicker,
|
||||
mode: 'standardized',
|
||||
statement: 'income',
|
||||
window: '10y',
|
||||
includeDimensions: false
|
||||
}));
|
||||
void queryClient.prefetchQuery(filingsQueryOptions({ ticker: normalizedTicker, limit: 120 }));
|
||||
}, [queryClient, router]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user