This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
fix: useFetch and target mode static still make calls to the API #292
Labels
bug
Something isn't working
๐ 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: