-
Notifications
You must be signed in to change notification settings - Fork 444
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
fix(wallets): cache walletConnectClient #3310
fix(wallets): cache walletConnectClient #3310
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @gregfromstl and the rest of your teammates on |
CodSpeed Performance ReportMerging #3310 will not alter performanceComparing Summary
|
size-limit report 📦
|
a5f1e16
to
b2913ca
Compare
e9ae3d1
to
c760d52
Compare
b2913ca
to
9d73e12
Compare
c760d52
to
4204c67
Compare
4204c67
to
7f71d45
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## refactor/icon-usage-connectwallet #3310 +/- ##
==================================================================
Coverage 62.54% 62.55%
==================================================================
Files 870 870
Lines 64578 64595 +17
Branches 3479 3479
==================================================================
+ Hits 40390 40405 +15
- Misses 23508 23510 +2
Partials 680 680
*This pull request uses carry forward flags. Click here to find out more.
|
9d73e12
to
9088174
Compare
7f71d45
to
8e2d234
Compare
9088174
to
6b67cb6
Compare
8e2d234
to
48c5a18
Compare
6b67cb6
to
de2eb1c
Compare
48c5a18
to
a9edd7d
Compare
de2eb1c
to
5a8123f
Compare
a9edd7d
to
fe2c8f4
Compare
5a8123f
to
cea04a5
Compare
fe2c8f4
to
05659fa
Compare
cea04a5
to
e061008
Compare
05659fa
to
142ab64
Compare
Merge activity
|
e061008
to
715a597
Compare
142ab64
to
1652bbc
Compare
715a597
to
966211e
Compare
1652bbc
to
167819f
Compare
### TL;DR Implemented a caching mechanism for WalletConnect clients to improve performance and added error messaging for failed connections. ### What changed? - Introduced a caching mechanism for WalletConnect clients using a WeakMap to store instances. - Removed redundant console.log error message in WalletConnectReceiverScreen.tsx. - Updated disconnect message to "Disconnected". ### How to test? 1. Trigger multiple WalletConnect sessions and ensure that the client is retrieved from the cache after the initial creation. 2. Test error handling by forcing a connection failure and verifying that the error message is set correctly. 3. Disconnect a WalletConnect session and ensure the disconnect message is accurate. ### Why make this change? This change enhances the performance by reducing redundant WalletConnect client creations and improves the clarity of error and disconnect messages. <!-- start pr-codex --> --- ## PR-Codex overview This PR optimizes WalletConnect client caching and error handling. ### Detailed summary - Added caching mechanism for WalletConnect clients - Improved error message handling during connection establishment - Updated disconnect message to "Disconnected" > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
966211e
to
ac5bb56
Compare
167819f
to
9266254
Compare
TL;DR
Implemented a caching mechanism for WalletConnect clients to improve performance and added error messaging for failed connections.
What changed?
How to test?
Why make this change?
This change enhances the performance by reducing redundant WalletConnect client creations and improves the clarity of error and disconnect messages.
PR-Codex overview
The focus of this PR is to optimize the WalletConnect client caching mechanism and improve error handling in the WalletConnect receiver module.
Detailed summary