summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-06-18 16:16:27 -0700
committerGravatar Fred K. Schott <fkschott@gmail.com> 2021-06-18 16:16:27 -0700
commite8a976a543070bce4d661b5289e16d1097a593bc (patch)
treec025fc91ecf159e8e7ac1636861e9dac57f269c5
parent2b51e9e4b33ad75d4b583dda178bfbf56a080524 (diff)
downloadastro-e8a976a543070bce4d661b5289e16d1097a593bc.tar.gz
astro-e8a976a543070bce4d661b5289e16d1097a593bc.tar.zst
astro-e8a976a543070bce4d661b5289e16d1097a593bc.zip
update docs, remove reference to Inifinity
-rw-r--r--docs/collections.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/collections.md b/docs/collections.md
index 474bbe7a1..0f714c308 100644
--- a/docs/collections.md
+++ b/docs/collections.md
@@ -137,7 +137,7 @@ export async function createCollection() {
// Finally, `pageSize` and `pagination` is still on by default. Because
// we don't want to paginate the already-grouped pages a second time, we'll
// disable pagination.
- pageSize: Infinity,
+ pageSize: 1,
};
}
---
@@ -179,8 +179,8 @@ export async function createCollection() {
return allPokemon[params.index];
},
// Note: The default pageSize is fine because technically only one data object
- // is ever returned per route. We set it to Infinity in this example for completeness.
- pageSize: Infinity,
+ // is ever returned per route. We can set it to "1" in this example for completeness.
+ pageSize: 1,
};
}
---