Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 2195 | Rev 2204 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 2195 Rev 2197
Línea 12... Línea 12...
12
  static getDerivedStateFromError() {
12
  static getDerivedStateFromError() {
13
    return { hasError: true }
13
    return { hasError: true }
14
  }
14
  }
Línea 15... Línea 15...
15
 
15
 
16
  componentDidCatch(error, errorInfo) {
16
  componentDidCatch(error, errorInfo) {
17
    console.error('ErrorBoundary caught an error: ', error, errorInfo)
17
    console.log('ErrorBoundary caught an error: ', error, errorInfo)
18
    this.props.addNotification({ style: 'danger', msg: error.message })
18
    this.props.addNotification({ style: 'danger', msg: error.message })
Línea 19... Línea 19...
19
  }
19
  }
20
 
20