We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
------------------------------ - Operating System: `Linux` - Node Version: `v16.14.2` - Nuxt Version: `3.0.0-27485997.c426f3e` - Package Manager: `npm@7.17.0` - Builder: `vite` - User Config: `-` - Runtime Modules: `-` - Build Modules: `-` ------------------------------
https://stackblitz.com/edit/node-4gdlnd?file=middleware%2Ftest.global.ts
Start the project and look at browser console, you can see infinite logs there
Calling an API inside middleware causes infinite loop when if the API return 404
No response
The text was updated successfully, but these errors were encountered:
Shouldn't you just add abortNavigation(e) in the catch?
abortNavigation(e)
catch
Sorry, something went wrong.
It never reaches to catch block @lukaszflorczak
This is no longer replicable - let me know if you still experience it.
No branches or pull requests
Environment
Reproduction
https://stackblitz.com/edit/node-4gdlnd?file=middleware%2Ftest.global.ts
Start the project and look at browser console, you can see infinite logs there
Describe the bug
Calling an API inside middleware causes infinite loop when if the API return 404
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: