diff --git a/lib/widgets/infinite_scroll.dart b/lib/widgets/infinite_scroll.dart index 64b3e59..bf085d9 100644 --- a/lib/widgets/infinite_scroll.dart +++ b/lib/widgets/infinite_scroll.dart @@ -49,10 +49,7 @@ class InfiniteScroll extends HookWidget { useEffect(() { if (controller != null) { - controller.clear = () { - data.value = []; - hasMore.current = true; - }; + controller.clear = () => data.value = []; return controller.dispose; }