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 f2723f0 commit 0591bc4Copy full SHA for 0591bc4
1 file changed
app/composables/usePackageListPreferences.ts
@@ -41,6 +41,22 @@ export function usePackageListPreferences() {
41
},
42
})
43
44
+ // One-time migration: replace legacy 'all' with the current maximum page size
45
+ watch(
46
+ isHydrated,
47
+ hydrated => {
48
+ if (!hydrated) {
49
+ return
50
+ }
51
+
52
+ if ((preferences.value.pageSize as unknown) === 'all') {
53
+ preferences.value.pageSize = Math.max(...PAGE_SIZE_OPTIONS) as PageSize
54
+ save()
55
56
+ },
57
+ { immediate: true },
58
+ )
59
60
const pageSize = computed({
61
get: () => preferences.value.pageSize,
62
set: (value: PageSize) => {
0 commit comments