Skip to content

Improved error handling

Latest
Compare
Choose a tag to compare
@grubersjoe grubersjoe released this 16 Jan 21:10
· 70 commits to main since this release

By default an error message is shown if fetching contribution data fails. Two properties have been added in this release to give you more control over error handling:

  • errorMessage?: string
  • throwOnError?: boolean, false per default

With errorMessage the default error message can be overwritten. If throwOnError is set to true the component will throw an error instead of rendering the error message so that React error boundaries can be used.

Thanks @marcelscruz for the suggestion!