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

useAsyncData: getCachedData + immediate: false don`t work #25341

Closed
or2e opened this issue Jan 19, 2024 · 2 comments
Closed

useAsyncData: getCachedData + immediate: false don`t work #25341

or2e opened this issue Jan 19, 2024 · 2 comments

Comments

@or2e
Copy link

or2e commented Jan 19, 2024

Reproduction

https://stackblitz.com/edit/nuxt-starter-g5apvu?file=pages%2Findex.vue

Describe the bug

Composable useAsyncData.
getCachedData in combination with immediate: false don't behave as expected.
In reproduction, when returning to the / page, the API request is still executed.

Copy link

stackblitz bot commented Jan 19, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@or2e or2e changed the title useAsyncData: getCachedData + immediate: false don`t work useAsyncData: getCachedData + immediate: false don`t work Jan 19, 2024
@manniL
Copy link
Member

manniL commented Jan 19, 2024

Duplicate of #24332

@manniL manniL marked this as a duplicate of #24332 Jan 19, 2024
@manniL manniL closed this as not planned Won't fix, can't repro, duplicate, stale Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants