-
Notifications
You must be signed in to change notification settings - Fork 407
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
[SDK] Fix caching issue with headless UI when custom resolvers are used #5657
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 2fccfc0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
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. |
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5657 +/- ##
==========================================
+ Coverage 51.42% 51.52% +0.09%
==========================================
Files 1093 1093
Lines 57524 57588 +64
Branches 4723 4755 +32
==========================================
+ Hits 29583 29671 +88
+ Misses 27225 27200 -25
- Partials 716 717 +1
*This pull request uses carry forward flags. Click here to find out more.
|
63e00b0
to
000438f
Compare
000438f
to
65bb12e
Compare
b70d69c
to
7bb43c0
Compare
7bb43c0
to
76e38a2
Compare
Merge activity
|
…ed (#5657) ## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR addresses caching issues in headless components and enhances code coverage. It introduces the `getFunctionId` utility in various components to improve resolver handling for names and symbols. ### Detailed summary - Added `getFunctionId` to various components for handling resolvers. - Updated `NFTName`, `NFTDescription`, and `NFTMedia` to use `getFunctionId` instead of `toString()`. - Enhanced `ChainIcon`, `TokenIcon`, `ChainName`, and `TokenName` to include resolver handling. - Introduced `fetchChainName` and `fetchTokenName` for improved name resolution. - Added tests for `fetchChainName`, `fetchTokenName`, `fetchTokenSymbol`, and their respective query keys. - Updated `TokenSymbol` to utilize `fetchTokenSymbol` and improved resolver handling. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
76e38a2
to
2fccfc0
Compare
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on fixing caching issues for headless components and improving code coverage in the
thirdweb
package.Detailed summary
nameResolver
anddescriptionResolver
inNFTName
andNFTDescription
to usegetFunctionId
.NFTMedia
to utilizegetFunctionId
formediaResolver
.fetchChainName
andfetchTokenName
functions for better name resolution.fetchChainName
,fetchTokenName
, andfetchTokenSymbol
to ensure proper functionality.getQueryKeys
to handle resolvers more effectively in bothTokenName
andTokenSymbol
.