Skip to content

Vue 3 composition API for data fetching. This is a version for Vue 2 by using @vue/composition-api.

License

Notifications You must be signed in to change notification settings

kylee0325/vue2-request-utils

Repository files navigation

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>;
  },
};

About

Vue 3 composition API for data fetching. This is a version for Vue 2 by using @vue/composition-api.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published