-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK] onTimeout for useAutoConnect | TOOL-2673 #5879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 810f319 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
ead15bb to
b4a8832
Compare
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5879 +/- ##
==========================================
+ Coverage 55.19% 55.27% +0.07%
==========================================
Files 1123 1123
Lines 59617 59636 +19
Branches 5028 5041 +13
==========================================
+ Hits 32905 32961 +56
+ Misses 25992 25953 -39
- Partials 720 722 +2
*This pull request uses carry forward flags. Click here to find out more.
|
b4a8832 to
ac8ba1b
Compare
gregfromstl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing test coverage
ac8ba1b to
2972aad
Compare
packages/thirdweb/src/react/core/hooks/wallets/useAutoConnect.test.tsx
Outdated
Show resolved
Hide resolved
6326e45 to
7b85028
Compare
7b85028 to
448a80c
Compare
448a80c to
d5a11bf
Compare
|
/release-pr |
Merge activity
|
TOOL-2673
<!-- start pr-codex -->
---
## PR-Codex overview
This PR introduces an `onTimeout` callback to the `useAutoConnect` hook, enhancing its functionality by allowing users to define custom behavior when a connection attempt times out. It also includes tests for the new feature and refactors some wallet connection logic.
### Detailed summary
- Added `onTimeout` callback to `useAutoConnect`.
- Updated `useAutoConnectCore` to handle wallet connections with the new `onTimeout` feature.
- Refactored `handleWalletConnection` function to improve clarity.
- Added unit tests for `getUrlToken` covering various scenarios.
- Updated test configurations for better matching of test files.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
d5a11bf to
810f319
Compare

TOOL-2673
PR-Codex overview
This PR introduces an
onTimeoutcallback to theuseAutoConnectfunctionality in thethirdwebpackage, enhancing connection management. Additionally, it adds tests for thegetUrlTokenfunction and updates thevitestconfiguration for testing.Detailed summary
onTimeoutcallback touseAutoConnect.types.tsto includeonTimeoutin the connection options.useAutoConnectCoreto handle timeout scenarios.getUrlTokencovering various cases.vitest.config.tsto include all test files.