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(() { useEffect(() {
if (controller != null) { if (controller != null) {
controller.clear = () { controller.clear = () => data.value = [];
data.value = [];
hasMore.current = true;
};
return controller.dispose; return controller.dispose;
} }