@bjj/nuxt-layer-shadcn-ui 0.11.10 → 0.11.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -34,6 +34,9 @@ const hasMore = ref(true)
|
|
|
34
34
|
const errored = ref(false)
|
|
35
35
|
const total = ref<number | undefined>(undefined)
|
|
36
36
|
const requestVersion = ref(0)
|
|
37
|
+
// Tracks whether a fetch has ever been initiated. Gates the IntersectionChecker
|
|
38
|
+
// so `autoFetch=false` doesn't get bypassed by the observer firing on mount.
|
|
39
|
+
const started = ref(false)
|
|
37
40
|
|
|
38
41
|
const sortState = ref<{ sortBy: string | null, sortOrder: number | null }>({
|
|
39
42
|
sortBy: props.filters?.sortBy ? String(props.filters.sortBy) : null,
|
|
@@ -101,6 +104,7 @@ function resetState () {
|
|
|
101
104
|
async function loadMore () {
|
|
102
105
|
if (loading.value || !hasMore.value) return
|
|
103
106
|
|
|
107
|
+
started.value = true
|
|
104
108
|
// Calling loadMore is the retry path; the IntersectionChecker is hidden
|
|
105
109
|
// while errored, so it can't trigger this branch on its own.
|
|
106
110
|
errored.value = false
|
|
@@ -238,7 +242,7 @@ onMounted(() => {
|
|
|
238
242
|
</Button>
|
|
239
243
|
</div>
|
|
240
244
|
<EffectIntersectionChecker
|
|
241
|
-
v-else-if="
|
|
245
|
+
v-else-if="started"
|
|
242
246
|
:disabled="loading"
|
|
243
247
|
:options="intersectionOptions"
|
|
244
248
|
class="flex items-center justify-center"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bjj/nuxt-layer-shadcn-ui",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.11",
|
|
4
4
|
"description": "Nuxt layer providing shadcn-vue based UI components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"vue-i18n": "^11",
|
|
43
43
|
"vue-router": "^4 || ^5"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "638440ff1ba8ba346190b8241f0a83a8d6a9da69"
|
|
46
46
|
}
|