Skip to content

fix(wallet): synchronize external provider state and capabilities - #565

Merged
petar-omni merged 1 commit into
mainfrom
fix/external-provider-live-state
Sep 9, 2026
Merged

fix(wallet): synchronize external provider state and capabilities#565
petar-omni merged 1 commit into
mainfrom
fix/external-provider-live-state

Conversation

@petar-omni

@petar-omni petar-omni commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Added

  • Regression coverage for external-provider initial chain selection, disconnected/restored accounts, live capabilities, supported-chain changes, sequential remounts, StrictMode, and dashboard chain selection.
  • A README guide with typed React and browser-renderer examples, callback contracts, live updates, chain filtering, remount requirements, and Borrow support.

Changed

  • Read the live host chain for initial connection instead of always selecting the first supported configured chain.
  • Resolve provider callbacks and Borrow capabilities when deferred operations execute.
  • Keep an empty host address disconnected and reject explicit connection attempts without an account.
  • Preserve the actual host chain while disabling wallet operations when it is excluded from the supported chains. Avoid automatic disconnect/reconnect loops for unsupported external connectors.
  • Distinguish omitted supported-chain IDs from an explicit empty list. Reject empty intersections with the fixed wallet topology at initialization and on live updates.
  • Surface configuration failures through typed wallet errors and the existing error boundary. Recover from an invalid live list by remounting with valid configuration.

Use the host chain on initial connection and resolve live callbacks when
operations start. Keep disconnected accounts idle and exclude unsupported
chains from wallet operations without reconnect loops.

Reject empty supported-chain intersections at mount and on live updates.
Surface invalid configuration through the existing error boundary.

Cover connector state, live capabilities, remount isolation, and dashboard
chain selection. Document typed adapters, live updates, and Borrow support.
@changeset-bot

changeset-bot Bot commented Sep 8, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 57c6855

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@aws-amplify-eu-central-1

Copy link
Copy Markdown

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-565.df4xyoi0xyeak.amplifyapp.com

@aws-amplify-eu-central-1

Copy link
Copy Markdown

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-565.d2ribjy8evqo6h.amplifyapp.com

@petar-omni
petar-omni merged commit df247b2 into main Sep 9, 2026
10 checks passed
@petar-omni
petar-omni deleted the fix/external-provider-live-state branch September 9, 2026 08:37
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.

3 participants