[client] Use getDerivedStateFromError instead of componentDidCatch in the...

[client] Use getDerivedStateFromError instead of componentDidCatch in the error-reporter. Fixes #1029
1 job for migrate-logs in 3 minutes and 47 seconds (queued for 4 seconds)
latest
Status Name Job ID Coverage
  Test
passed ci #1178163

00:03:47