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
https://stackblitz.com/edit/github-ptesuy?file=app.vue
const { data: thisTypeIsCorrect } = await useAsyncData("test", async () => ({ hello: "world!" })); const { data: thisTypeIsAny } = await useAsyncData("test2", async () => ({ hello: "world!" }), { getCachedData: (key) => useNuxtApp().payload.data[key], });
useAsyncData types are inferred from getCachedData and not from the handler. Is this the behavior it should have?
No response
The text was updated successfully, but these errors were encountered:
Start a new pull request in StackBlitz Codeflow.
Sorry, something went wrong.
I have the same problem
useAsyncData
getCachedData
Data
useFetch
any
Successfully merging a pull request may close this issue.
Environment
Reproduction
https://stackblitz.com/edit/github-ptesuy?file=app.vue
Describe the bug
useAsyncData types are inferred from getCachedData and not from the handler.
Is this the behavior it should have?
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: