Skip to content

Fix quote flashing, resolves BAB-188#1995

Open
yasha-meursault wants to merge 4 commits into
devfrom
dev-quote-flash
Open

Fix quote flashing, resolves BAB-188#1995
yasha-meursault wants to merge 4 commits into
devfrom
dev-quote-flash

Conversation

@yasha-meursault
Copy link
Copy Markdown
Contributor

Enhance quote data handling by suppressing stale data after errors and adding loading state management

@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
layerswapapp Ready Ready Preview May 27, 2026 12:57pm

Request Review

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

🚀 Storybook preview: https://layerswap.github.io/layerswapapp/pr-preview/pr-1995/

… amounts

- Require Number(debouncedAmount) > 0 in hasQuoteParams so /quote is never
  called for 0 / 0.0 / 0.00 — the backend returns a fabricated fallback
  quote for zero amounts that would otherwise poison the laggy cache
…acking

Track the last settled quote emitted and suppress stale data during load
transitions only when the prior emission was empty, covering errored routes
plus other empty-to-loading transitions. Drops the in-fetch ref writes and
the cache read during render.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants