-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate page loads #35
Comments
For me too, the page is reloaded twice, when I leave it and return to it. |
I'm sorry, it was due to poor implementation on my part. In your load function, you check the list of previousKeys using the .contains function. It turns out that I was using a specific type for my keys and I didn't overload the == operator to get a good equality comparison. I used the equatable library for this, and everything works correctly now. Thanks for your library. |
@pmkod Can you please share some code? |
Same issue here. For some reason, load is called twice so quickly that first call doesn't have time to finish. For now I solved this using mutex. If another load call is still in progress, then I just return Here is my implementation: mutex provider, keyed by the page:
load:
|
Hello. I occasionally seem to get the first page of results loading twice, and I've narrowed it down to this line of code.
It appears that the method is called twice (as expected, I think), but
previousPageKeys
isn't yet populated on the second call. The first page key only seems to get added topreviousPageKeys
after_load
is called the second time.The text was updated successfully, but these errors were encountered: