Modern request library for vue
A Vue.js package based on the idea of vue-request.
This package separates the functions into composibles so that the tree can be treeshake
const { data, loading, error } = useRequest(
useCache(useFetch("/api/users"), {
cacheKey: "users"
})
)
-
useCache
- Caching mechanism -
useDebounce
- Debouncing mechanism -
useFetch
- Fetching mechanism -
useLoadMore
- Load more mechanism -
usePagination
- Pagination mechanism -
usePolling
- Polling mechanism -
useRefreshFocus
- Refresh focus mechanism -
useRequest
- Asynchronous request handler -
useThrottle
- Throttling mechanism