Nuxt · NUXT0038
Avoid unscoped refreshNuxtData calls
Flags global refresh without justification in Nuxt project code before it leaks into runtime behavior.
nuxt/no-global-refresh-without-justificationsrc/rule-packs/nuxt/rules/nuxt/no-global-refresh-without-justification.ts Upstream docs Run this rule
pnpm nuxt doctor --rules nuxt/no-global-refresh-without-justification
Why it matters
Refreshing every async-data key refetches unrelated state and hides which data a mutation actually invalidates.
Recommended fix
Remove global refresh without justification, or move it to the Nuxt runtime/API that owns that behavior.
Useful links
Example
Refresh specific async data keys
Before
await refreshNuxtData()
After
await refreshNuxtData('orders')