Closed mkatzour closed 6 months ago
I have the same problem too
i am also facing the same problem
You should probably delete that _fetchFeedPage(_pagingController.nextPageKey!)
line. Can you try again and tell me the result?
Same problem, retryLastFailedRequest() call doesn't do anything at all. Page request listener is not notified.
First off: Thank you for the excellent package!
When I force a failure on one of my next page requests, both the default newPageErrorIndicatorBuilder widget, as well as a custom one calling retryLastFailedRequest don't trigger a retry. Looking at the code, I see it clears the error, but doesn't notify listeners... could that be why?
My workaround is to use a custom widget like this:
newPageErrorIndicatorBuilder: (context) => generateRetryButton("Something went wrong. Tap to retry", () { _pagingController.retryLastFailedRequest(); _fetchFeedPage(_pagingController.nextPageKey!); }, key: const Key("feedNewPageError"))
Thanks!