You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that when the async operation is invoked, there is a possibility that when the then() callback is called the PlutoGrid to be already removed from the screen.
One possible solution for resolving the issue can be to just check if the widget is still mounted. Something like this:
Describe the bug
An unhandled exception occurs when navigating to another page while
PlutoLazyPagination
widget is still processing an async request :To Reproduce
Steps to reproduce the behavior:
PlutoGrid
with aPlutoLazyPagination
widget in it.Expected behavior
Check if the
ScrollController
is actually attached to a view before attempting to do thejumpTo()
action.Additional context
The place where the exception happens is in the
pluto_lazy_pagination.dart
file, at thesetPage()
function, line 183 :It seems that when the async operation is invoked, there is a possibility that when the
then()
callback is called thePlutoGrid
to be already removed from the screen.One possible solution for resolving the issue can be to just check if the widget is still mounted. Something like this:
The text was updated successfully, but these errors were encountered: