vue2-request-utils

Vue 3 composition API for data fetching. This is a version for Vue 2 by using @vue/composition-api.
592 1
Install
npm install vue2-request-utils
Latest Version:1.2.5
Vue:2
License:Apache-2.0
Last Updated:Oct 14, 2021
Links: GitHub  ·  npm
Maintainer: kylee0325

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
swr-vue

Vue composables for Data fetching

1,877 13
vue-yp-http

基于axios使用在vue上的HTTP组件,根据YP业务二次封装。

1,088
@snail-js/api

Decorator-driven, plugin-first HTTP client built on axios. Nest.js-style decorat...

1,760
vue-apis

A vue plug-in integrated with axios. Build the API using chain programming and r...

1,066

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