Skip to content

Commit

Permalink
fix(useRequest): revert hasPending recomputed (sources)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangcch committed Jan 8, 2024
1 parent 2f7e6eb commit d349846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function useRequest<T extends Request>(
const _source = axios.CancelToken.source();

const ready = () => {
sources.value.push(_source);
sources.value = [...unref(sources), _source];

return _axiosIns({ ..._config, cancelToken: _source.token })
.then((res) => {
Expand Down

0 comments on commit d349846

Please sign in to comment.