Repository navigation
chore(webui): complete the TanStack Query migration - #2364
Merged
Merged
Conversation
…e-tanstack-migration # Conflicts: # webui/CHANGELOG.md
Contributor
Code reviewNo blocking bugs found in the core of the change (server-request.ts, query-client.ts, main.tsx, use-main-queries.ts). Not reviewed in depth: the scan-admin context rewrite and the remaining new hooks. Tests and lint were not run. Points for the author, all non-blocking:
🤖 Generated with Claude Code |
…e-tanstack-migration # Conflicts: # webui/CHANGELOG.md # webui/src/pages/admin-dashboard/publisher-revoke-dialog.tsx # webui/src/pages/user/profile/user-publisher-agreement.tsx
The registry answers /user/auth-error with a message and code but no error field, so sendRequest resolved it and a failed login showed no dialog. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Publishing or deleting a version left the cached detail fresh for a minute, so the extension page could show the old versions. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Drops sendNonRetriableRequest, controllerFromSignal and the abortController request field, and tests the retry policy through a real QueryClient instead of calling its functions directly. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
netomi
approved these changes
Oct 23, 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.
Tanstack Query has proven to be the right direction, and to really add value and reduce boilerplate in the webui.
This PR closes the circle and finishes up the migration of the remaining endpoints that were still using useEffect + abort controllers directly on the components.
The sendRequest methods have been further simplified and the fetch-retry dependency has been dropped. The 429 retries are now handled at the QueryClient level.