Skip to content

[MKT-1160]feat/improve price loading speed - #2282

Open
internxt-yu wants to merge 10 commits into
mainfrom
feat/faster-price-loading
Open

internxt-yu wants to merge 10 commits into
mainfrom
feat/faster-price-loading

Conversation

@internxt-yu

@internxt-yu internxt-yu commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

We want to improve the the loading speed of the prices, the changes are:

  1. Changed the load of everything sequentially inside one function in usePricing.ts, like country, prices, coupons, etc., to make it fetch in parallel the prices and coupons.
  2. Created a map to memorized the coupon datas during the user session, so while the user is browsing among pages, it will load directly from the map and avoid new request for fetch same coupon again.
  3. In currency.service.ts added the countryRequest with the same purpose to avoid another fetch on the user location.
  4. Added to Campaigns.ts the list of coupons of affiliates campaign pages that are not using the automatic change of coupon mecanism, so it will directly fetch for the coupons without suffixes.
  5. Refactored get_coupons.ts to make the api to respond with it real status instead of generic response code.
  6. Changed the nested <Link> of TopBannner in mobile with a <span>, because the Link is render as <a> and the nested <a> is invalid in html.

@internxt-yu internxt-yu self-assigned this Nov 11, 2026
@internxt-yu internxt-yu added the enhancement New feature or request label Nov 11, 2026
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
website Ready Ready Preview Nov 13, 2026 11:16am UTC

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
website 48dc6a1 Commit Preview URL

Branch Preview URL
Nov 13 2026, 11:18 AM

Comment thread src/hooks/usePricing.ts Resolved
Comment thread src/hooks/usePricing.ts Resolved
Comment thread src/hooks/usePricing.ts Resolved
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@internxt-yu
internxt-yu requested a review from xabg2 November 13, 2026 11:29

This branch was successfully deployed

1 active deployment
Preview — 48dc6a11 Deployed Nov 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants