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
Linux
v18.5.0
3.0.0-rc.9
0.5.0
yarn@1.22.19
vite
-
See stackblitz:
https://stackblitz.com/edit/github-qzajsz
null
Despite initialCache being specified in the API in page1.vue, when returning back to the page a second time the cached value is used initially.
initialCache
page1.vue
You can see that "NEW DATA VAL" is logged indicating that the data is eventually replaced by new fetched data.
However on the initial load, the data should be null and not be given old data.
On my production app, this means users see old data when returning back to a page before it is replaced by new data.
Normally I replace the data with a loading spinner when data === null, however since data is not null this does not appear.
data === null
data
No response
The text was updated successfully, but these errors were encountered:
Thanks
Sorry, something went wrong.
initialCache: false
useFetch no longer supports initialCache.
useFetch
No branches or pull requests
Environment
Linux
v18.5.0
3.0.0-rc.9
0.5.0
yarn@1.22.19
vite
-
-
-
Reproduction
See stackblitz:
https://stackblitz.com/edit/github-qzajsz
null
in the dev console.null
and has the value from the first time opening the component.Describe the bug
Despite
initialCache
being specified in the API inpage1.vue
, when returning back to the page a second time the cached value is used initially.You can see that "NEW DATA VAL" is logged indicating that the data is eventually replaced by new fetched data.
However on the initial load, the data should be
null
and not be given old data.Additional context
On my production app, this means users see old data when returning back to a page before it is replaced by new data.
Normally I replace the data with a loading spinner when
data === null
, however sincedata
is not null this does not appear.Logs
No response
The text was updated successfully, but these errors were encountered: