Skip to content
Source
Sign inSign up
TanStack/query

refactor(query-core)!: move error boundary options to adapters #12709

DraftTkDodowants to merge 8 commits intoquery-v6 fromrefs/pull/12709/headopened View on GitHub

TkDodocommented

🎯 Changes

Move error-boundary throwOnError into React, Preact, Solid, and Vue. Core observers use a boolean to decide whether an error change should notify listeners. Imperative refetch options still control promise rejection.

This is the first draft in the stack. The next draft covers Suspense.

Runtime tests, type tests, and Oxlint passed for core and all seven adapters. Local Brotli Size Limit measured 12,649 bytes for React full (−35 bytes, −0.28%) and 8,373 bytes for React minimal (−18 bytes, −0.21%) against query-v6. Preview CI is pending.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested code changes locally with pnpm run test:pr, or these tests do not apply to this pull request.
  • I have followed the AI contribution policy and fully understand the code in this pull request, including any code generated with AI assistance.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).
    1. Pushedc6c2729

    2. Pushed9d6f5a3

    3. Pushedf42f615

    4. Pushed965f577

    5. Pushed353ee6f

    6. Pusheded81707

Sign in to join this conversation.