vue-request
vue-request copied to clipboard
⚡️ This is a library that can easily help you manage request states, supporting common features such as SWR, polling, error retry, caching, and pagination, etc. ⚡️ 这是一个能够轻松帮助你管理请求状态...
### 需求描述 Feature Description Please export the return value interfaces like `QueryResult` etc. Say we want to wrap `useRequest` like: ```ts function useMyRequest(result: QueryResult) { const foo = computed(() =>...
### 需求描述 Feature Description Use with
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.1.5 to 2.9.13. Release notes Sourced from vite's releases. [email protected] Please refer to CHANGELOG.md for details. [email protected] Please refer to CHANGELOG.md for details. [email protected] Please refer to...
It would be very useful to modify request data given a cache key, this will allow to mutate a query's data without needing to have access to the mutate function...
### Bug 描述 Bug description In the usePagination function we are running into the problem that `injectedGlobalOptions` are undefined in this line ```pagination: (_injectedGlobalOption = injectedGlobalOptions.pagination) !== null && _injectedGlobalOption...
### 问题描述 Problem Description 感谢作者开源,想咨询下可以在uniapp 项目中使用该库吗 ### 其他信息 Other information
### Bug 描述 Bug description 在插件中使用 onBefore 钩子对前置参数进行校验,并选择性拦截请求 拦截后,状态没有被正确重置 ### 代码重现 Reproduce 我编写了一个插件 useBeforePlugin 来辅助完成 onBefore 生命周期中的参数校验与请求拦截功能 但是它并没有按预期工作: - id 小于等于 2 时,请求会正常发起 - 大于 2 时会被 onBefore 拦截,但是可以看到被拦截时的 loadng...
fix: undefined injectedGlobalOptions close #182
### 问题描述 Problem Description 我在useLoadMore中需要传入其他自定义参数,由于依赖其他请求结果,我设置了`manual`,但是loadmore无法传参数,我应该怎么使用 ### 其他信息 Other information
### 代码示例 ```ts const { pageSize, params } = usePagination( ({ current }) => { console.log('current', current) return getCurrentAppMenusService() }, { defaultParams: ['test'] } ) console.log('params', params.value) ``` ### 问题描述...