Retry mechanism for when loading exports from a module fails #4065
Unanswered
daniel-cottone
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are looking into adding retry capabilities for when loading modules fails. We came across the RetryPlugin which appears to hook into the
loadEntryError
lifecycle, triggering when loading the entrypoint fails. However, during our testing we can see that this does not retry if loading the entrypoint is successful, but loading an export from the module fails (such as HTTP request failure for the relevant JS file).Is it possible to create a retry mechanism for this situation? If not, is it on the roadmap to implement? Our current solution is to just attempt to reload the page, which is a poor user experience and causes problems if page state does not persist through page reload.
Beta Was this translation helpful? Give feedback.
All reactions