Repository navigation
fix(start-client-core): skip console.log for AbortError in serverFnFetcher (#7873) - #7878
gonzoblasco wants to merge 6 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthrough
ChangesServer function fetching
Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~5 minutes Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to Cancelled server-function requests no longer produce AbortError console noise, while callers still receive the rejected error. No merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation The change skips logging for DOMException errors named AbortError and preserves rethrowing. However, other non-Response errors remain unconditionally logged, and CancelledError handling is not added. Therefore, the broader issue objective is not fully addressed [7873]. ✨ 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 |
|
Hey, just bumping this one - it's a small fix skipping a noisy console.log for AbortError. Would appreciate a maintainer review when you have a moment. |
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
Closing as superseded - current #8204 ( The branch conflicts with |
Fixes #7873
serverFnFetcher'sgetResponsewas logging every non-Response error viaconsole.log, including benignAbortErrors from cancelled requests. This spammed the browser console in both dev and production builds.Added a guard that skips the
console.logforDOMExceptionwithname === 'AbortError'— the caller deliberately aborted and will handle the rejection.Summary by CodeRabbit