I’m trying to catch the error when webpack fails to find a chunk (typical cache issue) and thought that perhaps that the Router was publishing a router:navigation:error
-event. However, this doesn’t seem to be the case. Does anyone know where I can catch this error (ie Error: Loading chunk 10 failed.
) best?
My plan is to do a window.location.reload(true)
(with a couple of tweaks) as the file most likely just has changed hash and exists if the main app chunk is updated.