message: Bug reset ErrorBoundary state on location change
diff: import * as React from 'react';
  +import { history } from '@console/internal/components/utils/router';
  import { ErrorBoundaryFallbackProps } from './types';
  type ErrorBoundaryProps = {
  @@ -15,9 +16,9 @@ export type ErrorBoundaryState = {
  const DefaultFallback: React.FC = () => <div />;
  class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
  - constructor(props) {
  - super(props);
  - this.state = {
  + unlisten: () => void = () => {};
  +
  + readonly defaultState: ErrorBoundaryState = {
  hasError: false,
  error: {
  message: '',
  @@ -28,6 +29,21 @@ class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundarySta
  componentStack: '',
  },
  };
  +
  + constructor(props) {
  + super(props);
  + this.state = this.defaultState;
  + }
  +
  + componentDidMount() {
  + this.unlisten = history.listen(() => {
  + // reset state to default when location changes
  + this.setState(this.defaultState);
  + });
  + }
  +
  + componentWillUnmount() {
  + this.unlisten();
  }
  componentDidCatch(error, errorInfo) {
  