[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: do not call useNuxtApp() inside getCachedData

+1 -1
+1 -1
app/composables/useI18nStatus.ts
··· 15 15 responseType: 'json', 16 16 server: false, 17 17 // Cache the result to avoid refetching on navigation 18 - getCachedData: key => useNuxtApp().payload.data[key] || useNuxtApp().static.data[key], 18 + getCachedData: (key, nuxtApp) => nuxtApp.payload.data[key] ?? nuxtApp.static.data[key], 19 19 }) 20 20 21 21 /**