Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(useAxios): bail out on request abort #3394

Merged
merged 1 commit into from Nov 9, 2023
Merged

Conversation

jahnli
Copy link
Contributor

@jahnli jahnli commented Sep 12, 2023

When the request aborted, the response is undefined, it causes Cannot read properties of undefined (reading 'data')

@jahnli jahnli changed the title fix(useAxios): when response is undefined, it causes Cannot read 'dat… fix(useAxios): request aborted,causes Cannot read properties of undefined Sep 12, 2023
@antfu antfu changed the title fix(useAxios): request aborted,causes Cannot read properties of undefined fix(useAxios): bail out on request abort Nov 9, 2023
@antfu antfu enabled auto-merge November 9, 2023 14:44
@antfu antfu added this pull request to the merge queue Nov 9, 2023
Merged via the queue into vueuse:main with commit 151f9b0 Nov 9, 2023
4 checks passed
@yuantongkang
Copy link

如果请求是 Aborted 是走不到 then 这里的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants