Skip to content

fix: confirm MANA send once per hash to prevent infinite update loop#684

Open
eordano wants to merge 1 commit into
masterfrom
fix/wallets-page-crash
Open

fix: confirm MANA send once per hash to prevent infinite update loop#684
eordano wants to merge 1 commit into
masterfrom
fix/wallets-page-crash

Conversation

@eordano

@eordano eordano commented Jul 19, 2026

Copy link
Copy Markdown
Member

The Send MANA flow re-triggered its confirmation effect on every render, causing an infinite update loop that crashed the account wallets page. This confirms a send only once per transaction hash.

Adds unit and integration coverage for SendManaContent.

The confirm effect re-fired whenever its onSuccess prop changed identity
(the parent re-renders on every tx-store notification and passes an inline
arrow), each run re-notifying the store: an infinite update loop that
crashed the wallets page with React #185 (white page) after a send.

Guard the effect with a confirmedHash ref, mirroring the existing
recordedHash pattern. Adds a unit regression (onSuccess identity churn)
and an integration spec against the real store that reproduces the crash
on the unguarded code.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 19, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

You must set up Two-Factor Authentication before accessing this team.

View Documentation: https://vercel.com/docs/two-factor-authentication

@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 29686099002

Coverage increased (+0.001%) to 96.059%

Details

  • Coverage increased (+0.001%) from the base build.
  • Patch coverage: 3 of 3 lines across 1 file are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 10042
Covered Lines: 9954
Line Coverage: 99.12%
Relevant Branches: 4752
Covered Branches: 4257
Branch Coverage: 89.58%
Branches in Coverage %: Yes
Coverage Strength: 17.45 hits per line

💛 - Coveralls

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