A
A
Andrey2017-05-16 16:53:33
React
Andrey, 2017-05-16 16:53:33

Is it possible somehow to restart completely React js SPA?

I'm making an application that should work offline for a long time.
The problem is that if it crashes for some reason, then I would like to know about it.
To do this, I would like to catch the error event in window and completely restart the application on such an event + log errors.
How can I correctly "kill" the application completely, along with the store, and start it again?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2017-05-16
@f-end

location.reload()?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question