Skip to content

Manually flattening return value of getStaticPaths with paginate#4476

Merged
ElianCodes merged 2 commits intowithastro:mainfrom
tadyjp:patch-1
Aug 31, 2023
Merged

Manually flattening return value of getStaticPaths with paginate#4476
ElianCodes merged 2 commits intowithastro:mainfrom
tadyjp:patch-1

Conversation

@tadyjp
Copy link
Copy Markdown
Contributor

@tadyjp tadyjp commented Aug 31, 2023

#4440

What kind of changes does this PR include?

  • New or updated content

Description

With Astro v3.0, the return value of getStaticPaths is no longer automatically flattened. Therefore, the nested array in the Nested pagination example code in the guide is now flattened using flatMap.

@netlify
Copy link
Copy Markdown

netlify bot commented Aug 31, 2023

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 3b353ac
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/64f0a80579a80a000931b9ea
😎 Deploy Preview https://deploy-preview-4476--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Copy Markdown
Member

@ElianCodes ElianCodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update @tadyjp

@ElianCodes ElianCodes merged commit 991c021 into withastro:main Aug 31, 2023
@tadyjp tadyjp deleted the patch-1 branch September 1, 2023 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nested pagination example code broken?

2 participants