Skip to content

duplicate react error #10021

@nightnei

Description

@nightnei

I use componentDidCatch to send error, like in the new documentation. But I receive 2 errors: one is from componentDidCatch and another is sent from somewhere another place. Can I disable autosend errors?

componentDidCatch(error, errorInfo) {
      this.setState({ error });
      Sentry.configureScope(scope => {
        Object.keys(errorInfo).forEach(key => {
          scope.setExtra(key, errorInfo[key]);
        });
      });
      Sentry.captureException(error);
}

screenshot 2018-10-04 18 45 57

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions