bluerobotics / bluerobotics/BlueOS
core: frontend: Improve axios middleware interface
Open
investigate
- Dominant language
- Vue
- Stars
- 453
- Forks
- 151
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 174
Description
Currently, someone using the middleware has to ignore backend offline error by putting a `if return` clause on the catch promise resolution, like that:
```typescript
back_axios({ ... })
.then((response) => { ... }
.catch((error) => {
if (error === backend_offline_error) { return }
...
```
It would be cool to have something like @patrickelectric suggested:
```typescript
back_axios({ ... })
.ignoreBackEndError()
.then((response) => { ... })
.catch((error) => { ... })
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.