We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Headers
Works:
const {data} = useFetch("/page", {headers: {Accept: "application/json"}}).json();
Doesn't:
const headers = new Headers(); headers.append("Accept", "application/json"); const {data} = useFetch("/page", {headers}).json();
I think it's caused by the spreading here:
vueuse/packages/core/useFetch/index.ts
Lines 195 to 198 in b3d1e2c
And here:
Lines 316 to 319 in b3d1e2c
The text was updated successfully, but these errors were encountered:
fix: add onFetchFinally. Fix headers issue #625
33d2cb5
fix: add onFetchFinally. Fix headers issue #625 (#631)
51a6d09
wheatjs
Successfully merging a pull request may close this issue.
Works:
Doesn't:
I think it's caused by the spreading here:
vueuse/packages/core/useFetch/index.ts
Lines 195 to 198 in b3d1e2c
And here:
vueuse/packages/core/useFetch/index.ts
Lines 316 to 319 in b3d1e2c
The text was updated successfully, but these errors were encountered: