Merged
Conversation
# Conflicts: # web/src/pages/Dashboard/Dashboard.jsx
- Replace manual AbortControllers and useEffect polls with useQuery - Implement intelligent caching and background refetch logic for dashboard and market data - De-duplicate API requests and improve Largest Contentful Paint metric
Collaborator
Author
Contributor
Code reviewFound 3 issues:
LangAlpha/web/src/pages/MarketView/MarketView.jsx Lines 391 to 409 in ca5b77d
LangAlpha/web/src/pages/MarketView/hooks/useStockData.js Lines 40 to 53 in ca5b77d
LangAlpha/web/src/pages/Dashboard/hooks/useDashboardData.js Lines 31 to 50 in ca5b77d 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
Chen-zexi
reviewed
Mar 8, 2026
- Fix: Pass missing snapshotData prop to MarketChart in MarketView - Fix: Remove error swallowing in useStockData to allow TanStack Query retries and aborts to function correctly - Fix: Apply refetchIntervalInBackground: false to all polling hooks (Dashboard, Market, Watchlist, Portfolio, Automations) to suppress background fetching and save bandwidth
Resolve conflicts in Dashboard.jsx and useWatchlistData.js: - Keep refactored hook-based architecture (useDashboardData, useOnboarding) - Merge previousClose field from main into useWatchlistData - Fix useOnboarding to use auth context instead of redundant API call
Chen-zexi
approved these changes
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Refactor frontend: Integrate TanStack Query for optimal data fetching