fix(communities): ignore stale community errors#58
Conversation
|
Warning Review limit reached
Your plan includes 1 review of capacity. Refill in 59 minutes and 2 seconds. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, a review can be triggered using the 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 trial, open-source, and free plans. In all cases, review capacity refills continuously over time. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Summary
Validation
Note
Medium Risk
Changes community error timing and clearing in the shared Zustand store, which affects how all consumers see fetch failures, but scope is limited to community loading UX rather than auth or publishing.
Overview
Community fetch failures are no longer written to the store immediately: the communities store waits ~1s before appending
errorevents to per-communityerrors, and drops pending and stored errors when the same community later emitsupdate. That wayuseCommunityonly surfaces errors that were not recovered by a successful refresh—transient blips are less likely to flash inerror/errors.Tests cover delayed store errors, errors cleared by a timely update, and the hook’s unsuperseded error list; README and regenerated LLM index docs describe the behavior.
Reviewed by Cursor Bugbot for commit 6dacdbe. Bugbot is set up for automated code reviews on this repo. Configure here.