unstale

npm / react-error-boundary

react-error-boundary

What changed in react-error-boundary 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

1 breaking1 new APIs and options1 performance1 tooling5 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

react-error-boundary 69 changes

Breaking changes 1

New APIs and options 1

Performance 1

  • Context values are memoized to avoid unnecessary consumer renders when boundary state is unchanged.

    6.1.6release notes

Tooling 1

  • Added @types/react as an optional peer dependency.

    6.1.3release notes

Fixes and other changes 5

  • An explicitly provided undefined fallback is accepted, but logs an error in development.

    6.1.6release notes

  • Types preserve optional defaulted props in withErrorBoundary.

    6.1.6release notes

  • Infers the wrapped component's ref type.

    6.1.5release notes

  • Handles the edge case where null is used as a thrown value.

    6.1.4release notes

  • Removed react-dom from the peer dependencies list because it was accidentally added during a previous internal refactor.

    6.0.3release notes