react-virtuoso
Advanced tools
Comparing version 4.5.1 to 4.6.0
@@ -533,2 +533,6 @@ import { default as React_2 } from 'react'; | ||
scrollBy(location: ScrollToOptions): void; | ||
/** | ||
* Obtains the internal size state of the component, so that it can be restored later. This does not include the data items. | ||
*/ | ||
getState(stateCb: StateCallback): void; | ||
} | ||
@@ -711,2 +715,8 @@ | ||
atBottomThreshold?: number; | ||
/** | ||
* pass a state obtained from the getState() method to restore the list state - this includes the previously measured item sizes and the scroll location. | ||
* Notice that you should still pass the same data and totalCount properties as before, so that the list can match the data with the stored measurements. | ||
* This is useful when you want to keep the list state when the component is unmounted and remounted, for example when navigating to a different page. | ||
*/ | ||
restoreStateFrom?: StateSnapshot; | ||
} | ||
@@ -713,0 +723,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"sideEffects": false, | ||
"version": "4.5.1", | ||
"version": "4.6.0", | ||
"homepage": "https://virtuoso.dev/", | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
248058
5468