Skip to content
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 name and url shown for HIT/STALE items in subrequest profiler #2021

Merged
merged 6 commits into from
Apr 19, 2024

Conversation

frandiox
Copy link
Contributor

We support addDebugInfo parameter in withCache to enhance what we show in the subrequest profiler. However, this function only runs when there's no cached information. Therefore, in HIT/STALE situations we can't show the profer debug info.

This PR adds the debug info to the Cache API so that we can get it later for HIT/STALE.

@frandiox frandiox requested review from wizardlyhel and a team April 19, 2024 14:49
Copy link
Contributor

shopify bot commented Apr 19, 2024

Oxygen deployed a preview of your fd-fix-debug-info branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
custom-cart-method ✅ Successful (Logs) Preview deployment Inspect deployment April 19, 2024 2:50 PM
third-party-queries-caching ✅ Successful (Logs) Preview deployment Inspect deployment April 19, 2024 2:50 PM
vite ✅ Successful (Logs) Preview deployment Inspect deployment April 19, 2024 2:50 PM
subscriptions ✅ Successful (Logs) Preview deployment Inspect deployment April 19, 2024 2:50 PM
optimistic-cart-ui ✅ Successful (Logs) Preview deployment Inspect deployment April 19, 2024 2:50 PM
skeleton ✅ Successful (Logs) Preview deployment Inspect deployment April 19, 2024 2:50 PM

Learn more about Hydrogen's GitHub integration.

@frandiox frandiox merged commit e842f68 into main Apr 19, 2024
15 checks passed
@frandiox frandiox deleted the fd-fix-debug-info branch April 19, 2024 17:39
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.

None yet

2 participants