Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

210
Visualizações
How can I catch all errors in React without a scope?

I am developing an Kiosk app with React, and having a bit trouble because some of the clients are experiencing crashes. So far I tried to enable google chrome crashpad logs, debug logs etc. and could not find anything that could lead to a crash.

So what I have in my mind is, whenever a Crash occurs, I will simply re open the welcome page and let the user continue their work (they need to restart the computer atm. because kiosk app is bound to a windows startup script)

What I tried so far;

  • Bound throw new Error to a button click and set window.onerror to console.log("error"), still having "uncaught error" error (and also log message but the error is still treated as uncaught)
  • ErrorBoundaries, I think I have to throw the error within the component to make this work. But I do not know the error source, it could be action reducers, services or components, so this will not work.

What can I try next?

Note: I cannot easily connect and monitor client kiosks, and errors are rare (only 20 out of 800 computers are having crashes (Google Chrome is not responding crash) every 4-6 hours) so even if I connect to monitor the kiosks, I cannot simply watch the empty screen for 6 hours.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda