So recently we launched our first React JS application online. However, when people open the site, then move to a different tab and close their computer, an error message displays when they come back. Here is what they see(not this exact image but the same idea):
Once the user refreshes the page, it works perfectly again...
I'm wondering 2 things:
1) is there a way to hide these errors?
2) is there a good way to refresh the page when/if they appear?

