Skip to content

perf(vue-renderer): early return render when redirect happens #6973

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

Merged
merged 2 commits into from
Feb 16, 2020

Conversation

pimlie
Copy link

@pimlie pimlie commented Feb 15, 2020

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

In pure ssr mode (ie not nuxt-generate) its not needed to return a full nuxt app on redirecting. A header with Location and empty body is plenty enough.

While debugging a redirect issue yesterday I was confused by this for a long time because I wasnt expecting the full body to be present so was thinking that it had already rendered the next page.

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly. (PR: #)
  • I have added tests to cover my changes (if not applicable, please state why)
  • All new and existing tests are passing.

@pimlie pimlie requested a review from a team February 15, 2020 09:51
@pi0 pi0 changed the title feat(vue-renderer): dont use app.template when redirecting on ssr perf(vue-renderer): early return render when redirect happens Feb 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants