@live-change/vue3-components 0.9.14 → 0.9.16

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/vue3-components",
3
- "version": "0.9.14",
3
+ "version": "0.9.16",
4
4
  "description": "Live Change Framework - vue components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,10 +21,10 @@
21
21
  },
22
22
  "homepage": "https://github.com/live-change/live-change-stack",
23
23
  "dependencies": {
24
- "@live-change/vue3-ssr": "^0.9.14",
24
+ "@live-change/vue3-ssr": "^0.9.16",
25
25
  "debug": "^4.3.4",
26
26
  "mitt": "3.0.1",
27
27
  "vue": "^3.5.12"
28
28
  },
29
- "gitHead": "5d0f137a1a16f892868719d919f4a76584fa879f"
29
+ "gitHead": "226df9fa7eb682f6d7da5e4541eb320e8309facf"
30
30
  }
@@ -19,7 +19,7 @@
19
19
 
20
20
  <slot v-if="itemsCount === 0" name="empty"></slot>
21
21
 
22
- <template v-for="(bucket, bucketIndex) in buckets.buckets" :key="bucket.id">
22
+ <template v-for="(bucket, bucketIndex) in buckets?.buckets ?? []" :key="bucket.id">
23
23
 
24
24
  <slot v-for="(item, itemIndex) in bucket.data" v-bind="{ item, bucket, itemIndex, bucketIndex }">
25
25
  <h4>{{bucketIndex}}.{{itemIndex}}</h4>
@@ -144,14 +144,19 @@
144
144
  const loadingBottom = ref(false)
145
145
 
146
146
  async function createBuckets() {
147
- return rangeBuckets(
148
- (range, p) => pathFunction.value(range, p),
149
- {
150
- bucketSize: bucketSize.value,
151
- initialPosition: initialPosition.value,
152
- softClose: softClose.value
153
- }
154
- )
147
+ try {
148
+ return await rangeBuckets(
149
+ (range, p) => pathFunction.value(range, p),
150
+ {
151
+ bucketSize: bucketSize.value,
152
+ initialPosition: initialPosition.value,
153
+ softClose: softClose.value
154
+ }
155
+ )
156
+ } catch(e) {
157
+ console.error("Error creating buckets", e)
158
+ throw e
159
+ }
155
160
  }
156
161
 
157
162
  const buckets = ref()