Closed sproctor closed 1 year ago
Having same issue in 1.5.2.
I have removed any potential deletions to ensure that I'm not concurrently altering the underlying database data during updates.
This should be resolved by https://github.com/cashapp/sqldelight/pull/3396 which is in 2.0.0-alpha04.
SQLDelight Version
1.5.1
Application Operating System
Android
Describe the Bug
The SQLDelight paging3 extension does not properly handle refresh.
https://github.com/cashapp/sqldelight/blob/de0ad1af76a6cc795e2c30ac0c76c635ee049d94/extensions/android-paging3/src/main/java/com/squareup/sqldelight/android/paging3/OffsetQueryPagingSource.kt#L40
This line could be something like:
Room has a good example of implementing paging: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:room/room-paging/src/main/kotlin/androidx/room/paging/LimitOffsetPagingSource.kt
Stacktrace