-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inaccurate JSdoc comment for page.size
in astro/@types
#11560
Comments
10 is the correct default pageSize and not 25. Closes withastro#11560
10 is the correct default pageSize and not 25. Closes withastro#11560
You're right. Feel free to send a PR to fix that 👍 |
@bluwy Done! I just created the issue to keep a track (I don't know if this was needed...). |
For single line changes it may be easier (especially for you as there's less work) to create a PR directly in the future, as long as the PR explains the context too! But still it doesn't hurt if you prefer to open an issue first. |
Ok @bluwy, thanks for you feedback! 😄 |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I was reading the Routing guide and I noticed an error which leads me to
astro/@types
package.The Page interface in
astro/@types
indicates that the default forpage.size
is25
. It seems to be wrong:page.size
uses the givenpageSize
option inpaginate()
function or10
.Pokemon - Page 1
in the preview)What's the expected result?
Link to Minimal Reproducible Example
https://stackblitz.com/edit/astro-paginate-pagesize?file=src%2Fpages%2Fpokemon%2F[page].astro&on=stackblitz
Participation
The text was updated successfully, but these errors were encountered: