Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@tatethurston tatethurston released this 21 Jun 21:46
· 1 commit to main since this release

What's Changed

const [error] = useErrorBoundary();
  • The error wrapping that was introduced in v2 has been removed. error will now be the error that was caught without any wrapping for thrown primitives. The types have been updated to unknown to reflect that thrown JavaScript errors may be any type not just instances of Error.

  • withErrorBoundary now propagates the wrapped component display name for improved debugging with React dev tools. It will display as WithErrorBoundary(${Component.displayName}).

Full Changelog: v2.0.1...v3.0.0