Pricing buttons don't respond until the cards hydrate
维护者通常 7 天内回复
@fonodi 已经在做这个了。
开始于 2026年11月9日。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- react, typescript
- 领域
- frontend, performance
调研方向
Start by reproducing the delay on /pricing-cms with a 6x CPU throttle in DevTools and timing when the "Buy now" handler in PricingCheckoutModal.tsx attaches. Then check PricingSwitcher.tsx and PricingBillingContext.tsx under plans/strapi-plan-pricing-cards/ for work that delays hydration. Done when the controls respond before hydration, or hydration is measurably faster and the waitForElementHydration wait in the tests can be relaxed.
由索引模型根据 Issue 内容生成。
描述
Where: /pricing-cms ("Buy now" on Growth, which opens the checkout dialog) and /pricing-cloud (the Monthly/Yearly toggle).
What's wrong: the pricing cards hydrate noticeably later than the rest of the page: about 3.5 seconds after it in Firefox, up to about 20 seconds in headless Firefox on a loaded machine. Clicks before that do nothing, because the button exists in the HTML but its click handler isn't attached yet. Normal manual use is fine, but on slow devices or connections users can click a dead button.
Code: client components in plans/strapi-plan-pricing-cards/: PricingCheckoutModal.tsx (dialog trigger), PricingSwitcher.tsx / PricingBillingContext.tsx (billing toggle).
How to reproduce: in Chrome DevTools → Performance, throttle the CPU (6× slowdown), reload /pricing-cms and click "Buy now" as soon as it appears. Nothing happens until hydration finishes.
Done when (suggested fixes):
- find what delays hydration of these cards (large client bundle, heavy work before hydration, a Suspense boundary waiting on data) and reduce it
- or make the controls usable before hydration, e.g. the Monthly/Yearly toggle as links or
?billing=yearly - QA note: the tests currently wait for these buttons to hydrate (
waitForElementHydration) and mark the Firefox runs as slow. That could be relaxed once this is fixed.
- 主要语言
- TypeScript
- 星标
- 6
- 派生
- 5
- 平均合并
- 5 天 6 小时
- 30 天内合并 PR
- 7
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
strapi/website 的其他 Issue
-
[SEO] Remove /blog/categories page from sitemap可能已有人在做 @fonodi 于 6 天前认领。 未关闭reopened
难度 1/5 1 小时以内 新手友好度 80/100
strapi/website#128 · 已指派 2 人 ·
维护者通常 7 天内回复
-
Create a new collection type and component for cloud-legal可能已有人在做 @fonodi 于 13 天前认领。 未关闭enhancement
strapi/website#169 · 已指派 2 人 ·
维护者通常 7 天内回复
-
难度 3/5 1-2 天 新手友好度 52/100
维护者通常 7 天内回复
-
Update GitHub Actions that still run on Node.js 20可能重新可做 @matej-marcisovsky 于 30 天前认领,目前没有进行中的 PR。 未关闭
strapi/website#153 · 已指派 1 人 ·
维护者通常 7 天内回复
-
难度 4/5 3-5 天 新手友好度 25/100
维护者通常 7 天内回复
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
langchain-ai/langchainjs#12239 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
paperclipai/paperclip#21837 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
code-yeongyu/senpi#6813 ·
维护者通常 1 天内回复
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 93/100
lingdojo/kana-dojo#34169 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100