-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor apps service toward TanStack Query #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: augment_full-combined-benchmark_31122025_base_refactor_apps_service_toward_tanstack_query
Are you sure you want to change the base?
Conversation
🤖 Augment PR SummarySummary: This PR refactors the web “apps” data layer toward TanStack Query (React Query), replacing several SWR/SWRInfinite usages with query hooks. Changes:
Technical Notes: The new hooks standardize query keys under the 🤖 Was this summary useful? React with 👍 or 👎 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # Assert | ||
| assert result == expected_response | ||
| assert len(result["recommended_apps"]) == 2 | ||
| mock_factory_class.get_recommend_app_factory.return_value = mock_factory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| export const useInfiniteAppList = (params: AppListParams, options?: { enabled?: boolean }) => { | ||
| const normalizedParams = normalizeAppListParams(params) | ||
| return useInfiniteQuery<AppListResponse>({ | ||
| queryKey: appListKey(params), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark PR from qodo-benchmark#84