Revert "fix infinite scroll bug where it would not load when resetting"
This reverts commit 6d8660c826
.
This commit is contained in:
parent
927cde7a39
commit
435fbc11c7
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue