Comments (2)
@MuhammadM1998 thank you for replying. The issue with onResponseError
is that it does not halt the execution of the code (like throwing does). Also, without the global catch
ing of the errors, the errors will be shown in the console which I like to avoid.
from nuxt.js.
You can create a customized fetch instance and do the global error handling in the onResponseError
hook. Then you use that custom fetch in your app
https://nuxt.com/docs/guide/recipes/custom-usefetch#custom-fetch
from nuxt.js.
Related Issues (20)
- `typedPages` does not work without `shamefully-hoist` unless `unplugin-vue-router` is installed HOT 9
- High CPU Usage with Nuxt Dev Server in Docker HOT 4
- feat: add plugin resolved hook
- useState inside plugin is not reactive when ssr: false HOT 3
- Allow configuring vite.cacheDir
- Not able to serve static SPA after changing `app.rootAttrs.id` HOT 1
- `usdId` on component that root is Fragment will cause server-side warning: Extraneous non-props attributes HOT 2
- Ability to add pages dynamically based on an API call HOT 8
- Assigning a value on the `onServerPrefetch` hook will result in a hydration error HOT 3
- Route query is not updating HOT 4
- `useFetch` will be http 400 when navigate from different layout page in old browser and ios app(alipay/qq) HOT 5
- Use useCookie to modify the value in one component, but the value in other components is not modified HOT 1
- Having issues accessing the images stored under src/public directory HOT 1
- Directive Custom | Hydration error when adding a class HOT 3
- Unable to update cookie with `useCookie` with `maxAge`/`expires` after cookies expired HOT 2
- Not found provide composable on hot reload HOT 2
- Cannot find module '@nuxt/cli-edge' HOT 2
- Running `generate` crashes dev server HOT 3
- navigateTo - named route cannot be opened in a new tab HOT 1
- The CJS build of Vite's Node API is deprecated. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt.js.