@tanstack/svelte-virtual 3.13.21 → 3.13.23
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/dist/index.js +5 -0
- package/package.json +2 -2
- package/src/index.ts +5 -0
package/dist/index.js
CHANGED
|
@@ -20,6 +20,11 @@ function createVirtualizerBase(initialOptions) {
|
|
|
20
20
|
},
|
|
21
21
|
});
|
|
22
22
|
virtualizer._willUpdate();
|
|
23
|
+
// Force store update in case the range didn't change (e.g. count increased
|
|
24
|
+
// but scroll position stayed the same). Without this, the store only
|
|
25
|
+
// updates when onChange fires (on range change), so changes like a new
|
|
26
|
+
// count that don't shift the visible range would not trigger a re-render.
|
|
27
|
+
virtualizerWritable.set(virtualizer);
|
|
23
28
|
};
|
|
24
29
|
virtualizerWritable = writable(virtualizer, () => {
|
|
25
30
|
setOptions(initialOptions);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/svelte-virtual",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.23",
|
|
4
4
|
"description": "Headless UI for virtualizing scrollable elements in Svelte",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"src"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@tanstack/virtual-core": "3.13.
|
|
44
|
+
"@tanstack/virtual-core": "3.13.23"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@sveltejs/package": "^2.3.11",
|
package/src/index.ts
CHANGED
|
@@ -53,6 +53,11 @@ function createVirtualizerBase<
|
|
|
53
53
|
},
|
|
54
54
|
})
|
|
55
55
|
virtualizer._willUpdate()
|
|
56
|
+
// Force store update in case the range didn't change (e.g. count increased
|
|
57
|
+
// but scroll position stayed the same). Without this, the store only
|
|
58
|
+
// updates when onChange fires (on range change), so changes like a new
|
|
59
|
+
// count that don't shift the visible range would not trigger a re-render.
|
|
60
|
+
virtualizerWritable.set(virtualizer)
|
|
56
61
|
}
|
|
57
62
|
|
|
58
63
|
virtualizerWritable = writable(virtualizer, () => {
|