fix(frontend): stop perpetual Calculating on slow multihop quotes (#484) #1020
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic!1020
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/484-swap-calculating-hang"
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?
Summary
refetchIntervalwhile a sim fetch is in flight (simQuoteRefetchInterval), so React Query no longer cancel/restarts quotes every 10s.shouldShowSimReceiveCalculating); submit stays blocked via#356stale gate whileisFetching.getRouteSolve/postRouteSolveuse a 45s timeout (prod) and accept React QueryAbortSignal; Trade market shares the refetch helper.docs/frontend.md, new skillskills/AGENTS_FRONTEND_SWAP_QUOTE_REFETCH.md, and crosslinks fromAGENTS.md/ route-display skill.Closes #484
Test plan
quoteDebounce.test.ts(#484 helpers),client.test.ts(route-solve timeout + AbortSignal),SwapPage.test.tsx(#356 Calculating gates still pass)amount_in=22500000often ~20–25s / 4 hops — must complete under 45s client budget without interval cancel/restart22.5— Calculating clears within SLAFollow-ups (not in this MR)
mentioned in commit
6873d06cd5