Skip to content

Commit cd38980

Browse files
committed
chore: add comment
1 parent 2641a99 commit cd38980

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/composables/npm/useUserPackages.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ export function useUserPackages(username: MaybeRefOrGetter<string>) {
185185
}
186186
}
187187

188-
// Re-fetch when provider changes
188+
// asyncdata will automatically rerun due to key, but we need to reset caache/page
189+
// when provider changes
189190
watch(searchProvider, () => {
190191
cache.value = null
191192
currentPage.value = 1

0 commit comments

Comments
 (0)