Hello,
in my usecase i have a onSearch-method which refreshs the PagingController after a new searchterm was entered by the user. In the same method i use a dio-canceltoken to cancel the preceeding requests and start a new request by refreshing the controller. So if the preceeding request was canceled, i got a CancelationException which i catch and return from the RequestListener without doing anything, the refreshPage-Method is not called.
After the catch and return the RequestListener doesn't get called anymore and i only see the CircularProgressIndicator spinning.
I have no idea how to handle something like that. Do i have to do something with the PagingController after catching and return?
setting _pagingController.error = null will not refresh the controller if the error was already null.
you can manually request the page again by notifying the page listeners.
Hello, in my usecase i have a onSearch-method which refreshs the PagingController after a new searchterm was entered by the user. In the same method i use a dio-canceltoken to cancel the preceeding requests and start a new request by refreshing the controller. So if the preceeding request was canceled, i got a CancelationException which i catch and return from the RequestListener without doing anything, the refreshPage-Method is not called.
After the catch and return the RequestListener doesn't get called anymore and i only see the CircularProgressIndicator spinning. I have no idea how to handle something like that. Do i have to do something with the PagingController after catching and return?
Thanks in advance.
Example: