Skip to content

Commit adff749

Browse files
committed
✨ 새로 고침하면 처음부터 페이징하도록 구현
1 parent 7e7c002 commit adff749

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

data/src/main/java/com/whyranoid/data/post/PostPagingDataSource.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ class PostPagingDataSource(
1111
) : PagingSource<QuerySnapshot, Post>() {
1212

1313
override fun getRefreshKey(state: PagingState<QuerySnapshot, Post>): QuerySnapshot? {
14-
TODO("Not yet implemented")
14+
// 새로 고침하면 데이터를 처음부터 로드
15+
return null
1516
}
1617

1718
override suspend fun load(params: LoadParams<QuerySnapshot>): LoadResult<QuerySnapshot, Post> {

0 commit comments

Comments
 (0)