rainbowkit icon indicating copy to clipboard operation
rainbowkit copied to clipboard

fix: avoid creating a new WC connector on page reload (when already connected)

Open agualis opened this issue 10 months ago • 2 comments

Fixes https://github.com/rainbow-me/rainbowkit/issues/2232

Uses localStorage to know if there is an existing Wallet Connect connection after reloading the page. If yes, it avoids creating a new Wallet Connect connector ({ ...config, showQrModal: false }) which was leading to broken connection (with Error: No matching key. history: <number> error.).

The bug could be reproduced in the linked issue or in the the default rainbowkit example (Running pnpm run dev and following the reproduction steps in the linked issue).

agualis avatar Feb 20 '25 17:02 agualis

@agualis is attempting to deploy a commit to the rainbowdotme Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Feb 20 '25 17:02 vercel[bot]

lgtm

pyyding avatar Apr 17 '25 14:04 pyyding