This project is built to support a GitHub issue claiming that NuxtData causes performance issues when requesting large data sizes.
Issue: nuxt/nuxt#23594
To recreate this issue:
- Reload the site (if already loaded)
- Navigate to the fast page and record the response time
- Navigate to the data load page and wait for the response to return
- Navigate back to the fast page and record the new response time
The second response time will likely be significantly longer than the initial request.
This issue occurs if useFetch
/useAsyncData
is client-side only ssr:false
or server-side.
However, it does not occur when the entire page is set to ssr:false in nuxt.config.ts routeRules
.
It can also be remedied by calling clearNuxtData()
and does not occur when using $fetch
, strongly suggesting that the issue is caused by Nuxt's data caching.