Skip to content

perf(nuxt): abort vue render when plugins throw error#27304

Merged
danielroe merged 1 commit intomainfrom
perf/abort-render
May 22, 2024
Merged

perf(nuxt): abort vue render when plugins throw error#27304
danielroe merged 1 commit intomainfrom
perf/abort-render

Conversation

@danielroe
Copy link
Copy Markdown
Member

🔗 Linked issue

resolves #25518

📚 Description

It turns out that when we were throwing an error in plugins (or anywhere before the vue app started rendering) we were then rendering the error page twice - once on the initial request (which is discarded) and then again when we are intentionally rendering an error page.

A possible performance improvement might be using that initial render instead of running plugins twice. But for now, I think it's safer to keep the separated error render for consistency.

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@danielroe danielroe merged commit eb0bebc into main May 22, 2024
@danielroe danielroe deleted the perf/abort-render branch May 22, 2024 14:40
@github-actions github-actions Bot mentioned this pull request May 22, 2024
4 tasks
@saifobeidat
Copy link
Copy Markdown

here's a similar issue but for middlewares, will this PR fix it or its just for plugins? thanks
#25084

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Requests are fired twice on the error page

2 participants