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 mechanismuseDebounce
- Debouncing mechanismuseFetch
- Fetching mechanismuseLoadMore
- Load more mechanismusePagination
- Pagination mechanismusePolling
- Polling mechanismuseRefreshFocus
- Refresh focus mechanismuseRequest
- Asynchronous request handleruseThrottle
- Throttling mechanism