You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the first load, the payload saved is used and no API calls are made. When you click on a link, even though all the payload.js are downloaded, nuxt still makes an API call.
๐ Expected behaviour
When you use the fetch function in a normal way (eg. not with the composition API), no API calls are made when generated.
The text was updated successfully, but these errors were encountered:
* feat: support new fetchKey (Nuxt 2.15+) - closes#364, nuxt/nuxt#8781
* fix: fix issue with refetching/hydration in full static mode - closes#292
* fix: align fetch keys with 2.15 - see nuxt/nuxt#8809
@danielroe i'm still experiencing this issue, is there a specific configuration that needs to be set? i've alread set the target to 'static'. And i am using version ^2.15.8 of nuxt.
๐ The bug
When nuxt is generated via the static mode and using
useFetch
, API calls are still made.๐ ๏ธ To reproduce
Steps to reproduce the behavior:
npm run generate
npm run start
At the first load, the payload saved is used and no API calls are made. When you click on a link, even though all the
payload.js
are downloaded, nuxt still makes an API call.๐ Expected behaviour
When you use the
fetch
function in a normal way (eg. not with the composition API), no API calls are made when generated.The text was updated successfully, but these errors were encountered: