Skip to content

fix(client): avoid interactive UniSat reconnect - #67

Merged
chybisov merged 3 commits into
lifinance:mainfrom
arentant:fix/unisat-passive-reconnect
Jul 27, 2026
Merged

fix(client): avoid interactive UniSat reconnect#67
chybisov merged 3 commits into
lifinance:mainfrom
arentant:fix/unisat-passive-reconnect

Conversation

@arentant

Copy link
Copy Markdown
Contributor

Summary

  • avoid calling UniSat requestAccounts() during automatic reconnect
  • verify persisted authorization through passive getAccounts() access
  • handle an extension with no exposed accounts without opening its popup
  • include a patch changeset for @bigmi/client

Validation

  • pnpm check
  • pnpm check:types
  • pnpm check:circular-deps
  • pnpm knip:check
  • pnpm test — 32 passed, 1 skipped
  • pnpm build — Node 24.11.1

@changeset-bot

changeset-bot Bot commented Jul 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 063d6cf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@bigmi/client Patch
@bigmi/react Patch

Not sure what this means? Click here to learn what changesets are.

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

@chybisov
chybisov merged commit 3532b51 into lifinance:main Jul 27, 2026
6 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 27, 2026
chybisov added a commit that referenced this pull request Jul 27, 2026
reconnect runs on mount and polls for a wallet provider for up to 5s, so a
user can complete a manual connect() while it is still in flight. When no
connector reconnected, the tail reset wiped that fresh connection along
with the stale rehydrated entries.

Gate the reset on the store still being in the reconnecting/connecting
state reconnect put it in, matching wagmi.

Also restore the @bigmi/client vitest setup and the UniSat connector spec
removed in #67, and add reconnect specs covering the stale-connection
replacement, the no-connector reset, and the race above.
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