Skip to content

feat: instant transaction support with confirmation render optimizations#27783

Draft
matthewwalsh0 wants to merge 3 commits intomainfrom
feat/instant-transaction
Draft

feat: instant transaction support with confirmation render optimizations#27783
matthewwalsh0 wants to merge 3 commits intomainfrom
feat/instant-transaction

Conversation

@matthewwalsh0
Copy link
Copy Markdown
Member

@matthewwalsh0 matthewwalsh0 commented Mar 22, 2026

Description

Optimize the confirmation render path for instant transactions. Navigate to the confirmation screen before controller work completes, cache token icon state to prevent flicker during data hydration, and reduce unnecessary re-renders across the confirmation flow.

Depends on core PR for startTransaction support: MetaMask/core#8248

Changelog

CHANGELOG entry: Improved confirmation screen load performance for transactions

Related issues

Fixes:

Manual testing steps

  1. Open dev options in confirmations and trigger an instant transaction
  2. Confirmation screen should appear immediately without blank/loading state
  3. Token icons should not flicker as transaction data hydrates
  4. Standard (non-instant) transaction flow should be unaffected

Screenshots/Recordings

N/A

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Reduce perceived latency for transaction confirmations by guarding
expensive hooks behind skip/enabled flags, adding BigNumber useMemo
caching, bypassing Redux for instant approval lookups, and wiring
addTransactionBatchInstant through developer options.
@matthewwalsh0 matthewwalsh0 added the team-confirmations Push issues to confirmations team label Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-confirmations Push issues to confirmations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant