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

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

00:03:57