0
我不知道爲什麼我的loadMore不工作,這是我的代碼在我的分頁:我不能做loadMore,因爲hasMore()總是返回false,即使hasNextPage爲true?
todos(first: $count # count is default to 2
) @connection(key: "TodoList_todos") { #
edges {
cursor
node {
id,
complete,
...Todo_todo,
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
爲什麼我的hasMore()返回false時hasNextPage返回true?我該如何解決?