Replies: 1 comment
-
|
Basically:
Nuxt Open Fetch aims to implement For very advanced use cases, like retrying failed requests, consider overriding the Nuxt Open Fetch plugin. For real-world examples, check out Hack4KrakSite. The In the near future, I plan to revisit the fetch implementation in that project, and I’ll share updates if I discover any new best practices / ideas. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
All good APIs return data or error with non-200 status code. How to handle errors universally, so I don't need to have nullchecks errors handling everywhere I use
use[Client]?I am ok with having plugin like this:
Is is best practice for this module? Are there some disadvantages?
I know only about one - it does not fix types, so I have to nullcheck anyway (or silence him) to have Typescript satisfied. Is there a way to have all usages of
use[Client]to return type without undefined, because errors are handled in the components?Beta Was this translation helpful? Give feedback.
All reactions