kuuuurt / multiplatform-paging

Kotlin Multiplatform library for Pagination
Apache License 2.0
251 stars 22 forks source link

Allow invalidation of paging data #22

Closed msfjarvis closed 1 year ago

msfjarvis commented 3 years ago

AndroidX Paging exposes PagingSource#invalidate to throw away all currently held state and re-fetch items.

This is going to be extremely easy to implement for JVM (by deferring to AndroidX), but I'm unsure how to go about it for iOS. If you can provide some tips on that front, I'll be more than happy to send a PR.

msfjarvis commented 3 years ago

Hey @kuuuurt would you have a few minutes anytime soon to help me with some tips for this? I'd really appreciate it 🙏

kuuuurt commented 3 years ago

Hey @msfjarvis. Sorry about that. I guess for iOS we can just clear the details. Assign null to pagingData and currentPagingResult then make hasNextPage to true.

msfjarvis commented 1 year ago

I'm no longer interested in this and it's just sitting in my issue backlog

kuuuurt commented 1 year ago

My apologies @msfjarvis as I haven't had the time to work on side projects that much.