Skip to content

Fix/excessive rpc calls#602

Merged
aunali8812 merged 2 commits intostagingfrom
fix/excessive-rpc-calls
Feb 24, 2026
Merged

Fix/excessive rpc calls#602
aunali8812 merged 2 commits intostagingfrom
fix/excessive-rpc-calls

Conversation

@aunali8812
Copy link
Collaborator

@aunali8812 aunali8812 commented Feb 24, 2026

Summary by CodeRabbit

Release Notes

  • Performance
    • Improved efficiency of human verification checks by reducing unnecessary data refetching.

@aunali8812 aunali8812 requested a review from Ebube111 as a code owner February 24, 2026 18:23
@vercel
Copy link

vercel bot commented Feb 24, 2026

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

Project Deployment Actions Updated (UTC)
potlock-next-app Ready Ready Preview, Comment Feb 24, 2026 6:25pm

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 24, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4fa572f and 0825904.

📒 Files selected for processing (1)
  • src/common/contracts/core/sybil-resistance/hooks.ts

Walkthrough

Adds SWR configuration options to the useIsHuman hook to disable automatic revalidation behaviors (revalidateIfStale, revalidateOnFocus, revalidateOnReconnect), preventing the hook from triggering data refetches in response to these conditions.

Changes

Cohort / File(s) Summary
SWR Hook Configuration
src/common/contracts/core/sybil-resistance/hooks.ts
Added SWR options to disable automatic revalidation on stale data, focus events, and reconnection; hook now fetches only once on mount.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A hook once danced on every whim,
Revalidating on a whim's soft brim,
But now we whisper, "Rest, dear friend!"
No more refetching 'round each bend,
Configuration calm—the data stays, a steady trend! 📌

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/excessive-rpc-calls

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

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

@aunali8812 aunali8812 merged commit e041fbc into staging Feb 24, 2026
3 of 4 checks passed
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