vue-mrequest
v0.0.1
Published
Modern request library for vue
Downloads
4
Readme
vue-mrequest
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
Example
const { data, loading, error } = useRequest(
useCache(useFetch("/api/users"), {
cacheKey: "users"
})
)
Features
useCache
- Caching mechanismuseDebounce
- Debouncing mechanismuseFetch
- Fetching mechanismuseLoadMore
- Load more mechanismusePagination
- Pagination mechanismusePolling
- Polling mechanismuseRefreshFocus
- Refresh focus mechanismuseRequest
- Asynchronous request handleruseThrottle
- Throttling mechanism