fix infinite scroll bug where it would not load when resetting
This commit is contained in:
parent
0734fb42fc
commit
6d8660c826
|
@ -49,7 +49,10 @@ class InfiniteScroll<T> extends HookWidget {
|
|||
|
||||
useEffect(() {
|
||||
if (controller != null) {
|
||||
controller.clear = () => data.value = [];
|
||||
controller.clear = () {
|
||||
data.value = [];
|
||||
hasMore.current = true;
|
||||
};
|
||||
return controller.dispose;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue