Reuse existing tanstack queries#2947
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: b0192f0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@claude add a changeset |
|
Claude finished @dimaMachina's task in 51s —— View job Adding changeset
Added a Pushed in commit b0192f0. |
Co-authored-by: Dimitri POSTOLOV <[email protected]>
|
TL;DR — Replaces ad-hoc Key changes
Summary | 5 files | 5 commits | base: Shared
|
There was a problem hiding this comment.
Clean refactor — replaces ad-hoc fetchProjects calls and local state with the shared useProjectsQuery hook across billing, cost, and project-access-dialog. No behavioral regressions spotted; initialData: [] in the query hook ensures projects is always an array, so the .length / .map() call sites are safe. The biome.jsonc cleanup correctly removes a stale useProjectActions entry that no longer exists in the codebase.
Claude Opus | 𝕏
* upd * upd * upd * upd * Add changeset for reusing TanStack Query hooks Co-authored-by: Dimitri POSTOLOV <[email protected]> --------- Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Dimitri POSTOLOV <[email protected]>
No description provided.