Skip to content

Commit

Permalink
fix: add query
Browse files Browse the repository at this point in the history
  • Loading branch information
JinleeJeong committed Mar 1, 2024
1 parent c2bf913 commit 7c78f7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const useBiggestDividendYieldStocksQuery = (sector: string) => {
};

return useQuery({
queryKey: [biggestDividendYieldStocksQueryKeys._def],
queryKey: [biggestDividendYieldStocksQueryKeys._def, sector],
queryFn: () => requestClient(),
staleTime: Infinity,
gcTime: Infinity,
Expand Down
2 changes: 1 addition & 1 deletion src/state/queries/use-coming-dividend-stocks-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const useComingDividendStocksQuery = (sector: string) => {
};

return useQuery({
queryKey: [comingDividendStocksQueryKeys._def],
queryKey: [comingDividendStocksQueryKeys._def, sector],
queryFn: () => requestClient(),
staleTime: Infinity,
gcTime: Infinity,
Expand Down

0 comments on commit 7c78f7d

Please sign in to comment.