vue2-request-utils
English | 简体中文
vue2-request-utils
⚡️ Vue 3 composition API for data fetching. This is a version for Vue 2 by using @vue/composition-api, which is forked from VueRequest.
Documentation
Install
npm install vue2-request-utils
# or with yarn
yarn add vue2-request-utils
Usage
import { useRequest } from "vue2-request-utils";
export default {
setup() {
const { data } = useRequest("api/user");
return () => <div>{data.value}</div>;
},
};
Related Packages
vue-request
This is a library that can easily help you manage request states, supporting com...
233,950
1,393
@snail-js/api
Decorator-driven, plugin-first HTTP client built on axios. Nest.js-style decorat...
1,760
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.2.5 | ^2.0.0 | Apache-2.0 | |
| 1.2.3 | ^2.0.0 | Apache-2.0 | |
| 1.2.2 | ^2.0.0 | Apache-2.0 | |
| 1.2.0 | ^2.0.0 | MIT | |
| 1.1.9 | ^2.0.0 | MIT | |
| 1.1.8 | ^2.0.0 | MIT | |
| 1.1.7 | ^2.0.0 | MIT | |
| 1.1.6 | ^2.0.0 | MIT | |
| 1.1.5 | ^2.0.0 | MIT | |
| 1.1.4 | ^2.0.0 | Apache-2.0 | |
| 1.1.3 | ^2.0.0 | Apache-2.0 | |
| 1.1.2 | ^2.0.0 | Apache-2.0 | |
| 1.1.1 | ^2.0.0 | Apache-2.0 | |
| 1.1.0 | ^2.0.0 | Apache-2.0 | |
| 1.0.9 | ^2.0.0 | Apache-2.0 | |
| 1.0.8 | ^2.0.0 | Apache-2.0 | |
| 1.0.7 | ^2.0.0 | Apache-2.0 | |
| 1.0.6 | ^2.0.0 | Apache-2.0 | |
| 1.0.5 | ^2.0.0 | Apache-2.0 | |
| 1.0.4 | ^2.0.0 | Apache-2.0 | |
| 1.0.3 | ^2.0.0 | Apache-2.0 | |
| 1.0.2 | ^2.0.0 | Apache-2.0 | |
| 1.0.1 | ^2.6.14 | Apache-2.0 | |
| 1.0.0 | ^2.6.14 | Apache-2.0 |