In this example, each page of data remains visible as the next page is
fetched. The buttons and capability to proceed to the next page are also
suppressed until the next page cursor is known. Each page is cached as a
normal query too, so when going to previous pages, you'll see them
instantaneously while they are also re-fetched invisibly in the
background.
@if (query.status() === 'pending') {
Loading...
} @else if (query.status() === 'error') {
Error: {{ query.error().message }}
} @else {
@for (project of query.data().projects; track project.id) {