update docs, remove reference to Inifinity
This commit is contained in:
parent
2b51e9e4b3
commit
e8a976a543
1 changed files with 3 additions and 3 deletions
|
@ -137,7 +137,7 @@ export async function createCollection() {
|
||||||
// Finally, `pageSize` and `pagination` is still on by default. Because
|
// 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
|
// we don't want to paginate the already-grouped pages a second time, we'll
|
||||||
// disable pagination.
|
// disable pagination.
|
||||||
pageSize: Infinity,
|
pageSize: 1,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
|
@ -179,8 +179,8 @@ export async function createCollection() {
|
||||||
return allPokemon[params.index];
|
return allPokemon[params.index];
|
||||||
},
|
},
|
||||||
// Note: The default pageSize is fine because technically only one data object
|
// 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.
|
// is ever returned per route. We can set it to "1" in this example for completeness.
|
||||||
pageSize: Infinity,
|
pageSize: 1,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
|
|
Loading…
Add table
Reference in a new issue