Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

fix(nuxt): throw hard error on initial spa load if aborted#6857

Merged
pi0 merged 1 commit intomainfrom
fix/abort-spa-middleware
Aug 23, 2022
Merged

fix(nuxt): throw hard error on initial spa load if aborted#6857
pi0 merged 1 commit intomainfrom
fix/abort-spa-middleware

Conversation

@danielroe
Copy link
Copy Markdown
Member

🔗 Linked issue

resolves nuxt/nuxt#14154

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

We only throw a hard error at the moment on server middleware being aborted. But on initial load of a SPA, we also need to throw an error if abortMiddleware is called, or the denied page will go ahead and load...

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe danielroe added bug Something isn't working 🔨 p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage labels Aug 22, 2022
@danielroe danielroe requested a review from pi0 August 22, 2022 20:24
@danielroe danielroe self-assigned this Aug 22, 2022
@netlify
Copy link
Copy Markdown

netlify Bot commented Aug 22, 2022

Deploy Preview for nuxt3-docs canceled.

Name Link
🔨 Latest commit 543eaf3
🔍 Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/6303e6040005ef0009d632b8

@pi0 pi0 merged commit aab90ef into main Aug 23, 2022
@pi0 pi0 deleted the fix/abort-spa-middleware branch August 23, 2022 08:42
@pi0 pi0 mentioned this pull request Aug 26, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3.x bug Something isn't working 🔨 p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

abortNavigation without err argument passed doesn't abort navigation with ssr disabled

2 participants