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.
2 parents 4b1d372 + cbe0cb0 commit ccf88d2Copy full SHA for ccf88d2
2 files changed
app/composables/useNpmRegistry.ts
@@ -382,9 +382,11 @@ export function useNpmSearch(
382
383
// Update cache
384
if (cache.value && cache.value.query === q) {
385
+ const existingNames = new Set(cache.value.objects.map(obj => obj.package.name))
386
+ const newObjects = response.objects.filter(obj => !existingNames.has(obj.package.name))
387
cache.value = {
388
query: q,
- objects: [...cache.value.objects, ...response.objects],
389
+ objects: [...cache.value.objects, ...newObjects],
390
total: response.total,
391
}
392
} else {
nuxt.config.ts
@@ -219,6 +219,10 @@ export default defineNuxtConfig({
219
},
220
221
222
+ debug: {
223
+ hydration: true,
224
+ },
225
+
226
vite: {
227
optimizeDeps: {
228
include: [
0 commit comments