Cleanup: React Query dependency is overkill (only 2 mutations, no queries) #128
Labels
No Label
P0 Critical
P1 High
P2 Medium
P3 Low
accessibility
backend
bug
content
data-integrity
enhancement
frontend
infra
integration
owner
owner-input
performance
performance
phase-7
phase-8
security
seo
ui
ux
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: null/Queue-North-Website#128
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The project uses @tanstack/react-query (listed as a dependency) but only uses
useMutationin two places (Contact.jsx and Support.jsx). No queries, no caching, no invalidation — just two POST mutations.React Query adds ~40KB to the bundle for functionality that could be replaced with a 20-line
useAsynchook or plainfetchwith a loading state.Fix
Either:
useMutationwith a simple custom hookIf keeping, the QueryClient in main.jsx sets staleTime to 5 minutes — this is pointless with no queries.
Files
Severity
Low — unnecessary bundle weight, no functional impact