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