@inertiajs/svelte 2.2.1 → 2.2.3

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.
@@ -139,7 +139,10 @@ $: {
139
139
  [autoLoad, onlyNext, onlyPrevious, reverse];
140
140
  autoLoad ? infiniteScrollInstance?.elementManager.enableTriggers() : infiniteScrollInstance?.elementManager.disableTriggers();
141
141
  }
142
- onDestroy(() => infiniteScrollInstance?.elementManager.flushAll());
142
+ onDestroy(() => {
143
+ infiniteScrollInstance?.dataManager.removeEventListener();
144
+ infiniteScrollInstance?.elementManager.flushAll();
145
+ });
143
146
  </script>
144
147
 
145
148
  {#if !startElement && !reverse}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inertiajs/svelte",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "license": "MIT",
5
5
  "description": "The Svelte adapter for Inertia.js",
6
6
  "contributors": [
@@ -54,7 +54,7 @@
54
54
  "dependencies": {
55
55
  "@types/lodash-es": "^4.17.12",
56
56
  "lodash-es": "^4.17.21",
57
- "@inertiajs/core": "2.2.1"
57
+ "@inertiajs/core": "2.2.3"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "pnpm package && publint",