Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
理想中 PagingState.data (對應到 RemoteKeys) 內容,prev 為上一頁,next 為下一頁。
+---------+--------------+---------+
| prev: 0 | repo 001 | next: 2 |
+---------+--------------+---------+
| prev: 0 | repo 002 | next: 2 |
+---------+--------------+---------+
| prev: 0 | repo 003 | next: 2 |
+---------+--------------+---------+
...
+---------+--------------+---------+
| prev: 0 | repo 048 | next: 2 |
+---------+--------------+---------+
| prev: 0 | repo 049 | next: 2 |
+---------+--------------+---------+
| prev: 1 | repo 050 | next: 3 |
+---------+--------------+---------+
| prev: 1 | repo 051 | next: 3 |
+---------+--------------+---------+
| prev: 1 | repo 052 | next: 3 |
+---------+--------------+---------+
...
+---------+--------------+---------+
| prev: 1 | repo 098 | next: 3 |
+---------+--------------+---------+
| prev: 1 | repo 099 | next: 3 |
+---------+--------------+---------+
| prev: 1 | repo 100 | next: 3 |
+---------+--------------+---------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.