Skip to content

feat(docsite): enhance BlogShowcase component to handle empty and single post scenarios#4083

Open
Unmesh100 wants to merge 2 commits into
facebook:mainfrom
Unmesh100:main
Open

feat(docsite): enhance BlogShowcase component to handle empty and single post scenarios#4083
Unmesh100 wants to merge 2 commits into
facebook:mainfrom
Unmesh100:main

Conversation

@Unmesh100

Copy link
Copy Markdown

Before the fix, zero posts made featurePost equal undefined, but the component still
rendered: < BlogFeatureCard post={featurePost} />

BlogFeatureCard immediately accesses fields like post.title, so the homepage crashes.
The guard prevents that.

The one-post layout is included so it doesn’t render an empty right-hand column
intended for additional posts.

@meta-cla

meta-cla Bot commented Jul 19, 2026

Copy link
Copy Markdown

Hi @Unmesh100!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@vercel

vercel Bot commented Jul 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview, Comment Jul 19, 2026 2:04pm
astryx (canary) Ready Ready Preview, Comment Jul 19, 2026 2:04pm

Request Review

@github-actions github-actions Bot added community Authored by a community contributor (not on the eng/design team) needs:code-review High-risk change (new package/component/API) — needs human code review before merge needs:design-review Affects visuals — Design should review labels Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Authored by a community contributor (not on the eng/design team) needs:code-review High-risk change (new package/component/API) — needs human code review before merge needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant