Comments (1)
You can define actions in the global and model configs.
Extending the Request
class is not possible because it is as an internal object. However, like any object, you can patch the class as you please, for example:
import axios from 'axios'
import VuexORM from '@vuex-orm/core'
import VuexORMAxios, { Request } from '@vuex-orm/plugin-axios'
Request.prototype.retry = function (...args) {
// do something
}
VuexORM.use(VuexORMAxios, { axios })
from plugin-axios.
Related Issues (20)
- API Response then(response) not equal catch(response) HOT 1
- API request result.entities contains records in a different order than they were returned from the server. HOT 1
- issue with using with nuxt-i18n, language is appended to all api calls HOT 2
- persistBy: "create" not deleteAll data on relation HOT 5
- Missing related polymorphic model on store entities after data transformation HOT 2
- Handling of response errors HOT 1
- Update relationships on fetch HOT 1
- Inserting multiple records at once. HOT 2
- Retrieving Users with M:M relationship is causing infinite loop in mounted() HOT 3
- Outdated axios dependency HOT 1
- Setup issues with vue3 - Item.api is not a function HOT 10
- axios config URL HOT 1
- Relationships dataKey HOT 1
- retrieve store from single get HOT 2
- Request: please pass the model class to dataTransformer HOT 2
- InsertIgnore HOT 1
- Documentation for persistyBy option: Add link to explanation of insert vs. create
- Mapping multiple entities from one response HOT 1
- Entity Briefly Enters a Truncated State Before Deletion When Using Vuex-ORM Axios Plugin when i dont add delete option
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 plugin-axios.