fix infinite scroll bug where it would not load when resetting

This commit is contained in:
krawieck 2020-10-04 21:51:26 +02:00
parent 0734fb42fc
commit 6d8660c826
1 changed files with 4 additions and 1 deletions

View File

@ -49,7 +49,10 @@ class InfiniteScroll<T> extends HookWidget {
useEffect(() {
if (controller != null) {
controller.clear = () => data.value = [];
controller.clear = () {
data.value = [];
hasMore.current = true;
};
return controller.dispose;
}