We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcd81b0 commit 3a66b54Copy full SHA for 3a66b54
app/composables/useI18nStatus.ts
@@ -15,7 +15,7 @@ export function useI18nStatus() {
15
responseType: 'json',
16
server: false,
17
// Cache the result to avoid refetching on navigation
18
- getCachedData: key => useNuxtApp().payload.data[key] || useNuxtApp().static.data[key],
+ getCachedData: (key, nuxtApp) => nuxtApp.payload.data[key] ?? nuxtApp.static.data[key],
19
})
20
21
/**
0 commit comments