Replies: 1 comment
-
The const { data } = await useFetch('/api/endpoint', {
cache: false // or "no-cache"
}) Alternatively, you can use the import { onMounted } from 'vue'
const { data, refresh } = await useFetch('/api/endpoint')
onMounted(() => {
refresh()
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After entering the page and completing the request, refreshing the page will not re-issue the request. My demand is to obtain the server data in real time, so I do not want to go to the cache. I have tried to add a time stamp as the key in the request, but my demand is still not met, please help me solve it, thank you very much
Beta Was this translation helpful? Give feedback.
All reactions