Skip to content

Switch NameOptionalCard prefetch to in-view + next N strategy#690

Merged
devksingh4 merged 4 commits intomainfrom
fix-prefetch-dist
Apr 30, 2026
Merged

Switch NameOptionalCard prefetch to in-view + next N strategy#690
devksingh4 merged 4 commits intomainfrom
fix-prefetch-dist

Conversation

@devksingh4
Copy link
Copy Markdown
Contributor

Instead of each card independently using a 200px rootMargin, the provider now owns a single shared IntersectionObserver. When any card enters the viewport, it fetches that card plus the next prefetchAhead (default: 10) cards in registration order, giving better scroll performance on mobile.

Instead of each card independently using a 200px rootMargin, the provider
now owns a single shared IntersectionObserver. When any card enters the
viewport, it fetches that card plus the next `prefetchAhead` (default: 10)
cards in registration order, giving better scroll performance on mobile.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 30, 2026

Warning

Rate limit exceeded

@devksingh4 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 52 minutes and 3 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: de3efcba-95f0-445c-b0cd-733863f26e34

📥 Commits

Reviewing files that changed from the base of the PR and between a8f24a1 and 3be2c48.

📒 Files selected for processing (3)
  • .github/workflows/deploy-qa.yml
  • package.json
  • src/ui/components/NameOptionalCard/index.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-prefetch-dist

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 52 minutes and 3 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link
Copy Markdown

@devksingh4 devksingh4 merged commit 1c55bc7 into main Apr 30, 2026
14 of 15 checks passed
@devksingh4 devksingh4 deleted the fix-prefetch-dist branch April 30, 2026 23:05
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.

1 participant