Skip to content

feat: enableReconnect flag#4553

Merged
tomiir merged 13 commits intomainfrom
enes/apkt-3090-feature-request-do-not-reconnect-on-init
Jun 24, 2025
Merged

feat: enableReconnect flag#4553
tomiir merged 13 commits intomainfrom
enes/apkt-3090-feature-request-do-not-reconnect-on-init

Conversation

@enesozturk
Copy link
Copy Markdown
Contributor

@enesozturk enesozturk commented Jun 23, 2025

Description

Adds enableReconnect flag to control automatic reconnection. When enableReconnect is disabled, AppKit will disconnect all connections on initializations and page load.

Here are the example files for Wagmi and Ethers which also enables SIWX:

And here is example usage: https://github.com/reown-com/appkit/pull/4538/files#diff-6d03af96541902ab385c265921497d45ced5c7d1674a0ebc8857d58b2c5526feR33

Associated Issues

For Linear issues: Closes APKT-3090
For GH issues: closes #...

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections
  • I have tested my changes on the preview link
  • Approver of this PR confirms that the changes are tested on the preview link

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jun 23, 2025

🦋 Changeset detected

Latest commit: 8778672

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

This PR includes changesets to release 23 packages
Name Type
@reown/appkit Patch
@reown/appkit-adapter-bitcoin Patch
@reown/appkit-adapter-ethers Patch
@reown/appkit-adapter-ethers5 Patch
@reown/appkit-adapter-solana Patch
@reown/appkit-adapter-wagmi Patch
@reown/appkit-utils Patch
@reown/appkit-cdn Patch
@reown/appkit-cli Patch
@reown/appkit-codemod Patch
@reown/appkit-common Patch
@reown/appkit-controllers Patch
@reown/appkit-core Patch
@reown/appkit-experimental Patch
@reown/appkit-pay Patch
@reown/appkit-polyfills Patch
@reown/appkit-scaffold-ui Patch
@reown/appkit-siwe Patch
@reown/appkit-siwx Patch
@reown/appkit-testing Patch
@reown/appkit-ui Patch
@reown/appkit-wallet Patch
@reown/appkit-wallet-button 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

@vercel
Copy link
Copy Markdown

vercel bot commented Jun 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
appkit-basic-html ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2025 2:15pm
appkit-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2025 2:15pm
appkit-laboratory ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2025 2:15pm
10 Skipped Deployments
Name Status Preview Comments Updated (UTC)
appkit-basic-example ⬜️ Ignored (Inspect) Jun 24, 2025 2:15pm
appkit-basic-sign-client-example ⬜️ Ignored (Inspect) Jun 24, 2025 2:15pm
appkit-basic-up-example ⬜️ Ignored (Inspect) Visit Preview Jun 24, 2025 2:15pm
appkit-ethers5-bera ⬜️ Ignored (Inspect) Jun 24, 2025 2:15pm
appkit-nansen-demo ⬜️ Ignored (Inspect) Jun 24, 2025 2:15pm
appkit-vue-solana ⬜️ Ignored (Inspect) Jun 24, 2025 2:15pm
appkit-wagmi-cdn-example ⬜️ Ignored (Inspect) Jun 24, 2025 2:15pm
ethereum-provider-wagmi-example ⬜️ Ignored (Inspect) Jun 24, 2025 2:15pm
next-wagmi-solana-bitcoin-example ⬜️ Ignored (Inspect) Jun 24, 2025 2:15pm
vue-wagmi-example ⬜️ Ignored (Inspect) Jun 24, 2025 2:15pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 23, 2025

Warnings
⚠️ Changes were made to one or more package.json(s), but not to pnpm-lock.yaml
⚠️

🔑 Potential High‑entropy string detected in apps/laboratory/src/utils/DataUtil.ts (line 30): 0xd8da6bf26964af9d7e...

⚠️

🔑 Potential High‑entropy string detected in apps/laboratory/tests/shared/validators/ModalValidator.ts (line 333): fd20dc426fb37566d803...

⚠️ Testing spec changed

Generated by 🚫 dangerJS against 8778672

@linear
Copy link
Copy Markdown

linear bot commented Jun 23, 2025

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 23, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 77.74% 30563 / 39314
🔵 Statements 77.74% 30563 / 39314
🔵 Functions 68.59% 2525 / 3681
🔵 Branches 84.36% 6346 / 7522
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/adapters/wagmi/src/client.ts 79.47% 68.02% 82.5% 79.47% 115-116, 121-122, 133-135, 137, 199-200, 270-273, 358, 378-379, 462-463, 498-499, 516-517, 531-548, 567-568, 589-590, 594-595, 600-632, 651-657, 660-671, 680-681, 692-693, 714-716, 730-731, 744-745, 760-761, 813-814, 822-823, 828-829, 833-838, 845-846, 854-855, 860-861, 870-871, 879-880, 885-886, 892-914
packages/appkit/src/client/appkit-base-client.ts 74.25% 88.69% 75.79% 74.25% 183, 194-197, 210-236, 268-269, 271-272, 277-278, 357-358, 394-400, 465-466, 495-501, 504-505, 523-524, 577-581, 587-591, 628-632, 645-659, 684-690, 694-706, 709-711, 714-716, 719-721, 724-726, 729-735, 738-740, 743-749, 765-777, 783-816, 819-829, 881-882, 887, 891, 902-918, 926, 930-937, 1004-1006, 1012-1013, 1021-1022, 1024-1025, 1030-1032, 1068-1077, 1112-1113, 1126, 1149-1154, 1197, 1218-1219, 1229, 1231-1247, 1252, 1305-1316, 1358-1366, 1411, 1417-1421, 1440-1441, 1458-1461, 1496-1515, 1538-1549, 1578-1579, 1585-1611, 1819-1820, 1852-1853, 1856-1857, 1870-1873, 1876-1877, 1897-1898, 1901-1902, 1914-1924, 1941-1947, 1951-1952, 1966, 1974, 1977, 1981, 1986-2005, 2008-2017, 2024-2025, 2039-2040, 2043-2044, 2051-2052, 2091-2092, 2175-2176, 2179-2180, 2183-2186, 2189-2190, 2193-2194, 2197-2198, 2201-2202, 2205-2209, 2218-2227, 2236-227, 1075, 1545, 1988-2009
packages/appkit/src/client/appkit.ts 49.15% 79.16% 84% 49.15% 68-102, 105-119, 122-129, 132-148, 151-158, 163-170, 176-177, 202-203, 210-211, 224-247, 255-267, 269, 271-290, 292-306, 331-337, 340, 353, 374-375, 380-381, 396-476, 513-517, 539-540, 563-565, 573-574, 613-614
packages/controllers/src/controllers/ChainController.ts 79.35% 87.43% 74.72% 79.35% 186-197, 201-219, 223-233, 237-259, 281-282, 303-304, 342-343, 392-399, 403-416, 439-440, 456-457, 460-461, 470-471, 476-477, 493-494, 512-513, 554-557, 565-566, 604-610, 623-624, 658-659, 711, 737-738, 766-767, 777-778, 102, 204, 735
packages/controllers/src/controllers/ConnectionController.ts 80.61% 81.05% 52.87% 80.61% 160, 213-217, 220-224, 249-253, 262-281, 288, 296, 300, 304, 308, 312, 316, 320, 324, 355-356, 359-360, 395, 399, 433-435, 446-447, 480-481, 491-492, 494-495, 503-504, 506-507, 513-525, 368
packages/controllers/src/controllers/OptionsController.ts 86.28% 98% 53.16% 86.28% 231, 255-256, 303, 307, 357-360, 364-367, 371-374, 378-381, 422, 348, 417
Generated in workflow #12919 for commit 8778672 by the Vitest Coverage Report Action

@tomiir tomiir merged commit 7b64297 into main Jun 24, 2025
58 of 59 checks passed
@tomiir tomiir deleted the enes/apkt-3090-feature-request-do-not-reconnect-on-init branch June 24, 2025 16:33
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.

4 participants