Revert "fix infinite scroll bug where it would not load when resetting"

This reverts commit 6d8660c826.
This commit is contained in:
krawieck 2020-10-05 13:45:20 +02:00
parent 927cde7a39
commit 435fbc11c7
1 changed files with 1 additions and 4 deletions

View File

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