vue-use-async
Advanced tools
Comparing version
{ | ||
"name": "vue-use-async", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "Xhr and async helpers", | ||
@@ -45,3 +45,3 @@ "repository": { | ||
"babel-eslint": "^10.1.0", | ||
"babel-jest": "^25.3.0", | ||
"babel-jest": "^25.4.0", | ||
"babel-loader": "^8.1.0", | ||
@@ -59,6 +59,6 @@ "babel-plugin-module-resolver": "^4.0.0", | ||
"husky": "^4.2.5", | ||
"jest": "^25.3.0", | ||
"lint-staged": "^10.1.3", | ||
"jest": "^25.4.0", | ||
"lint-staged": "^10.1.7", | ||
"vue": "^2.6.11", | ||
"webpack": "^4.42.1", | ||
"webpack": "^4.43.0", | ||
"webpack-cli": "^3.3.11" | ||
@@ -65,0 +65,0 @@ }, |
@@ -50,2 +50,3 @@ # Xhr helpers to use in client (VueJS) projects | ||
const func = () => Promise.resolve('ok'); | ||
const { data } = useAsync(func, [params, condition]); | ||
@@ -57,3 +58,3 @@ | ||
- useSpinner, useFull to bind the `isPending` to a spinner icon. A minimum duration | ||
- useSpinner, useful to bind the `isPending` to a spinner icon. A minimum duration | ||
```javascript | ||
@@ -63,4 +64,4 @@ import { useAsync, useSpinner } from 'vue-use-async'; | ||
export default function () { | ||
const func = () => Promise.resolve('ok'); | ||
const { data, isPending } = useAsync(func, [params, condition]); | ||
@@ -67,0 +68,0 @@ |
23906
0.02%74
1.37%