@inertiajs/core 2.3.7 → 2.3.8

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": "@inertiajs/core",
3
- "version": "2.3.7",
3
+ "version": "2.3.8",
4
4
  "license": "MIT",
5
5
  "description": "A framework for creating server-driven single page apps.",
6
6
  "contributors": [
@@ -6,4 +6,5 @@ export declare const useInfiniteScrollData: (options: {
6
6
  onBeforeNextRequest: () => void;
7
7
  onCompletePreviousRequest: (loadedPage: string | number | null) => void;
8
8
  onCompleteNextRequest: (loadedPage: string | number | null) => void;
9
+ onReset?: () => void;
9
10
  }) => UseInfiniteScrollDataManager;
package/types/types.d.ts CHANGED
@@ -504,6 +504,7 @@ export interface UseInfiniteScrollOptions {
504
504
  onBeforeNextRequest: () => void;
505
505
  onCompletePreviousRequest: () => void;
506
506
  onCompleteNextRequest: () => void;
507
+ onDataReset?: () => void;
507
508
  }
508
509
  export interface UseInfiniteScrollDataManager {
509
510
  getLastLoadedPage: () => number | string | null;