-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: prevent endless reloading #44
Conversation
app/app.vue
Outdated
<div v-else-if="preventReload" class="reload_prevented"> | ||
<h3 class="hasErrors">Failed to show Nuxt.js app after {{ maxReloadCount }} reloads</h3> | ||
<p> | ||
Your Nuxt.js app could not be shown after {{ maxReloadCount }} reloads |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is somehow repeated and not useful for user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have shortened the line in the paragraph, some repetition seems to be unavoidable? Or do you have a better suggestion?
@@ -0,0 +1,25 @@ | |||
const baseKey = '__nuxt_loading_screen_' | |||
|
|||
export default { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vue/Nuxt plugin idea: A mixin to automatically sync component state :D
When somehow the nuxt app can not be shown, the loading screen would keep endlessly reloading.
I think that in almost any case when this issue happens the user has hit a webpack issue. This feature is in no means a fix for anything, it just prevents possible developer confusion as its difficult to understand why the reloading occurs as probably almost nobody knows that the nuxt loading screen does this reloading.