Nuxt · NUXT0038

Avoid unscoped refreshNuxtData calls

Flags global refresh without justification in Nuxt project code before it leaks into runtime behavior.
NUXT0038vite-doctor/nuxtfetchingwarnSuggestion

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.

Remove global refresh without justification, or move it to the Nuxt runtime/API that owns that behavior.

Example

Refresh specific async data keys

Before

await refreshNuxtData()

After

await refreshNuxtData('orders')
Copyright © 2026