upgrade navigation and route prefetch responsiveness
This commit is contained in:
11
lib/query/keys.ts
Normal file
11
lib/query/keys.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export const queryKeys = {
|
||||
companyAnalysis: (ticker: string) => ['analysis', ticker] as const,
|
||||
filings: (ticker: string | null, limit: number) => ['filings', ticker ?? '', limit] as const,
|
||||
report: (accessionNumber: string) => ['report', accessionNumber] as const,
|
||||
watchlist: () => ['watchlist'] as const,
|
||||
holdings: () => ['portfolio', 'holdings'] as const,
|
||||
portfolioSummary: () => ['portfolio', 'summary'] as const,
|
||||
latestPortfolioInsight: () => ['portfolio', 'insights', 'latest'] as const,
|
||||
task: (taskId: string) => ['tasks', 'detail', taskId] as const,
|
||||
recentTasks: (limit: number) => ['tasks', 'recent', limit] as const
|
||||
};
|
||||
Reference in New Issue
Block a user