fix(browse): format filter + sentry AbortError filtering
- Preserve 'all' value in format filter URL param so "All Formats" selection persists correctly - Filter AbortError from client-side Sentry error reporting Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -74,7 +74,7 @@ export function BrowseFilters({
|
||||
const params = new URLSearchParams(searchParams.toString());
|
||||
|
||||
Object.entries(updates).forEach(([key, value]) => {
|
||||
if (value === null || value === '' || value === 'all' || value === 'false') {
|
||||
if (value === null || value === '' || value === 'false') {
|
||||
params.delete(key);
|
||||
} else {
|
||||
params.set(key, value);
|
||||
|
||||
@@ -30,6 +30,13 @@ Sentry.init({
|
||||
replaysOnErrorSampleRate: 1.0, // 100% of sessions with errors
|
||||
|
||||
// Filter out common non-actionable errors
|
||||
ignoreErrors: [
|
||||
// AbortError during navigation is expected browser behavior when
|
||||
// Next.js RSC prefetch/streaming requests get cancelled mid-flight
|
||||
"AbortError: BodyStreamBuffer was aborted",
|
||||
"AbortError",
|
||||
],
|
||||
|
||||
beforeSend(event, hint) {
|
||||
// Ignore ResizeObserver errors (browser quirk, not actionable)
|
||||
if (event.exception?.values?.[0]?.value?.includes("ResizeObserver")) {
|
||||
|
||||
Reference in New Issue
Block a user