Skip to content

fix: reopen StoreAdapterWeb IndexedDB after force-close - #346

Open
Cal-L wants to merge 2 commits into
mainfrom
fix/mcwp-821-store-adapter-web-idb-reopen
Open

fix: reopen StoreAdapterWeb IndexedDB after force-close#346
Cal-L wants to merge 2 commits into
mainfrom
fix/mcwp-821-store-adapter-web-idb-reopen

Conversation

@Cal-L

@Cal-L Cal-L commented Sep 4, 2026

Copy link
Copy Markdown

Summary

  • Recovers @metamask/connect-multichain StoreAdapterWeb after Safari/WKWebView force-closes IndexedDB by invalidating the cached handle on close / versionchange and retrying get / set / delete once on InvalidStateError or UnknownError.
  • Leaves StoreAdapterRN (AsyncStorage) unchanged. Custom storage overrides are unaffected.
  • Addresses MCWP-821. Patch bump to 1.2.1.

Test plan

  • yarn workspace @metamask/connect-multichain test src/store/index.test.ts (76 tests)
  • Confirm a WebView/browser dapp using the default adapter can resume after backgrounding without a page reload
  • After merge, run the connect-monorepo release workflow to publish 1.2.1 to npm

Made with Cursor

Invalidate the cached IDB handle on close/versionchange and retry get/set/delete once after InvalidStateError or UnknownError so WKWebView and Safari recover without a reload.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Cal-L
Cal-L requested a review from a team as a code owner September 4, 2026 23:59
Co-authored-by: Cursor <cursoragent@cursor.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.

1 participant