Skip to content

Add blog post: rsc-in-2026-a-practical-guide.mdx#166

Open
deepu0 wants to merge 1 commit into
mainfrom
content/blog-post-2026-07-09
Open

Add blog post: rsc-in-2026-a-practical-guide.mdx#166
deepu0 wants to merge 1 commit into
mainfrom
content/blog-post-2026-07-09

Conversation

@deepu0

@deepu0 deepu0 commented Jul 9, 2026

Copy link
Copy Markdown
Owner

User description

Blog post about RSC for Frontend Junction


CodeAnt-AI Description

Publish a new practical guide to RSC in 2026

What Changed

  • Adds a new blog post titled “RSC in 2026: A Practical Guide”
  • Covers why RSC matters, common pitfalls to avoid, best practices, and a simple real-world example
  • Marks the post as published with tags and a featured image

Impact

✅ New published blog content
✅ Clearer RSC learning resource
✅ Easier discovery through tags

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

Summary by CodeRabbit

  • Documentation
    • Added a new blog post about “RSC in 2026,” covering why it matters, core concepts, common pitfalls, best practices, and a practical example.

@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
frontend-junction Ready Ready Preview, Comment Jul 9, 2026 3:35am

@codeant-ai

codeant-ai Bot commented Jul 9, 2026

Copy link
Copy Markdown

CodeAnt AI is reviewing your PR.

@codeant-ai

codeant-ai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This pull request adds a single new MDX blog post file at content/blog-post-2026-07-09/rsc-in-2026-a-practical-guide.mdx, containing YAML frontmatter and article content about React Server Components, including concepts, pitfalls, best practices, a code example, and a conclusion.

Changes

RSC 2026 Blog Post

Layer / File(s) Summary
Blog post frontmatter and content
content/blog-post-2026-07-09/rsc-in-2026-a-practical-guide.mdx
New MDX file with YAML frontmatter (title, description, date, tags, published, image) and article body covering RSC importance, key concepts, pitfalls, best practices, a TypeScript code example, conclusion, and a community discussion call-to-action.

Estimated code review effort: 1 (Trivial) | ~3 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description summarizes the post but omits required template sections like issue link, type of change, testing, screenshots, and checklist. Add the missing template sections: fixed issue number, change type, test steps/results, screenshots if applicable, and checklist items.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: adding a new RSC blog post.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch content/blog-post-2026-07-09

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

content/blog-post-2026-07-09/rsc-in-2026-a-practical-guide.mdx

Parsing error: Invalid left-hand side in prefix operation. (1:2)


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codeant-ai codeant-ai Bot added the size:M This PR changes 30-99 lines, ignoring generated files label Jul 9, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
content/blog-post-2026-07-09/rsc-in-2026-a-practical-guide.mdx (1)

24-71: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use an actual RSC example here.

Both code blocks are generic React/TypeScript snippets, so the post doesn’t really demonstrate server components, client boundaries, or server-side data fetching. Replacing one with a minimal RSC walkthrough would better match the article’s promise.

♻️ Example replacement
-```typescript
-// Example of modern rsc pattern
-function useModernPattern() {
-  // Implementation example
-  return {
-    apply: () => {
-      console.log("Applying modern rsc pattern");
-    }
-  };
-}
-```
+```tsx
+// Server Component
+export default async function ProductList() {
+  const products = await getProducts();
+
+  return <ProductListClient products={products} />;
+}
+```
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@content/blog-post-2026-07-09/rsc-in-2026-a-practical-guide.mdx` around lines
24 - 71, Replace the generic React/TypeScript snippets with a real RSC
walkthrough that shows a Server Component fetching data and a client boundary,
so the article actually demonstrates server components and server-side data
fetching. Update the example near useModernPattern and/or Component to use an
actual RSC pattern such as an async server component plus a client component,
and keep the surrounding “Common Pitfalls” and “Best Practices” sections aligned
with that RSC-focused example.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@content/blog-post-2026-07-09/rsc-in-2026-a-practical-guide.mdx`:
- Around line 1-8: This post is outside the blog collection that Velite scans,
so it will never be picked up by the posts pipeline. Move the MDX file into the
content/blog path so it matches the glob used by velite.config.ts, keeping the
same frontmatter and filename structure so the blog route can render it.

---

Nitpick comments:
In `@content/blog-post-2026-07-09/rsc-in-2026-a-practical-guide.mdx`:
- Around line 24-71: Replace the generic React/TypeScript snippets with a real
RSC walkthrough that shows a Server Component fetching data and a client
boundary, so the article actually demonstrates server components and server-side
data fetching. Update the example near useModernPattern and/or Component to use
an actual RSC pattern such as an async server component plus a client component,
and keep the surrounding “Common Pitfalls” and “Best Practices” sections aligned
with that RSC-focused example.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a45c8298-d7b9-49e0-a02b-ecbf3f7ef7f3

📥 Commits

Reviewing files that changed from the base of the PR and between 978700a and c6d3da6.

📒 Files selected for processing (1)
  • content/blog-post-2026-07-09/rsc-in-2026-a-practical-guide.mdx

Comment on lines +1 to +8
---
title: 'RSC in 2026: A Practical Guide'
description: 'A comprehensive guide to rsc for modern frontend development in 2026.'
date: '2026-07-09'
tags: ['RSC', 'Frontend', '2026']
published: true
image: './images/post-image.png'
---

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Move this post under the blog collection path.

velite.config.ts only ingests content/blog/**/*.mdx, so this file at content/blog-post-2026-07-09/... will never reach posts and the page route won’t render it.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@content/blog-post-2026-07-09/rsc-in-2026-a-practical-guide.mdx` around lines
1 - 8, This post is outside the blog collection that Velite scans, so it will
never be picked up by the posts pipeline. Move the MDX file into the
content/blog path so it matches the glob used by velite.config.ts, keeping the
same frontmatter and filename structure so the blog route can render it.

description: 'A comprehensive guide to rsc for modern frontend development in 2026.'
date: '2026-07-09'
tags: ['RSC', 'Frontend', '2026']
published: true

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: This post is marked as published, but it lives outside the configured Velite collection pattern (blog/**/*.mdx), so it will not be ingested or rendered in the blog at runtime. Move the file under content/blog/ (or update the collection pattern) so publishing actually takes effect. [api mismatch]

Severity Level: Critical 🚨
- ❌ Blog index omits this post despite published flag.
- ❌ Individual blog route never generated for this article.
- ⚠️ RSS feed excludes this article from subscribers.
- ⚠️ Sitemap omits article, hurting SEO visibility.
Steps of Reproduction ✅
1. Open `velite.config.ts` at `/workspace/frontend-junction/velite.config.ts` and observe
the `posts` collection definition at lines 11-14: `defineCollection({ name: 'Post',
pattern: 'blog/**/*.mdx', ... })` with `root: 'content'` configured at lines 30-31,
meaning only files under `content/blog/**/*.mdx` are ingested into `posts`.

2. List the content directories with `content/` (`/workspace/frontend-junction/content`),
where `LS` shows a `blog` folder (used by the collection) and a separate
`blog-post-2026-07-09` folder containing `rsc-in-2026-a-practical-guide.mdx` (confirmed by
`/workspace/frontend-junction/content/blog-post-2026-07-09` listing), which does not match
the `blog/**/*.mdx` pattern.

3. Note in the PR diff that the new post file is created at
`content/blog-post-2026-07-09/rsc-in-2026-a-practical-guide.mdx` with frontmatter
`published: true` on line 6, so it is intended to be a live blog post but resides outside
the `velite` blog collection pattern.

4. Trace how posts are used in the app: `app/blog/page.tsx` (lines 1, 30) imports `posts`
from `#site/content` and renders `sortPosts(posts.filter((post) => post.published))`;
`app/blog/[...slug]/page.tsx` (lines 1, 18-22, 71-79) uses `posts` for
`generateStaticParams` and for resolving individual post pages; `app/feed.xml/route.ts`
(lines 1, 13-17) and `app/sitemap.ts` (lines 3, 37-46) also iterate `posts` filtered by
`post.published`. Because `velite` never ingests
`content/blog-post-2026-07-09/rsc-in-2026-a-practical-guide.mdx` into `posts`, this
`published: true` entry will not appear on the blog index, will not have a generated
`[...slug]` page, and will be absent from the RSS feed and sitemap at runtime.

Fix in Cursor Fix in VSCode Claude

(Use Cmd/Ctrl + Click for best experience)

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** content/blog-post-2026-07-09/rsc-in-2026-a-practical-guide.mdx
**Line:** 6:6
**Comment:**
	*Api Mismatch: This post is marked as published, but it lives outside the configured Velite collection pattern (`blog/**/*.mdx`), so it will not be ingested or rendered in the blog at runtime. Move the file under `content/blog/` (or update the collection pattern) so publishing actually takes effect.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

@codeant-ai

codeant-ai Bot commented Jul 9, 2026

Copy link
Copy Markdown

CodeAnt AI finished reviewing your PR.

@greptile-apps

greptile-apps Bot commented Jul 9, 2026

Copy link
Copy Markdown

Greptile Summary

This PR adds a new Frontend Junction blog post about RSC in 2026.

  • New MDX post under content/blog-post-2026-07-09.
  • Frontmatter with title, description, date, tags, publish flag, and image path.
  • Introductory RSC guidance with TypeScript examples.

Confidence Score: 5/5

This looks safe to merge after checking the referenced post image.

  • The new content is isolated to one MDX blog post.
  • The only follow-up is whether the referenced image asset exists outside this diff.
  • No security-sensitive code changed.

content/blog-post-2026-07-09/rsc-in-2026-a-practical-guide.mdx

Important Files Changed

Filename Overview
content/blog-post-2026-07-09/rsc-in-2026-a-practical-guide.mdx Adds a published MDX blog post; the referenced image asset is not included in the diff.

Reviews (1): Last reviewed commit: "Add blog post: rsc-in-2026-a-practical-g..." | Re-trigger Greptile

date: '2026-07-09'
tags: ['RSC', 'Frontend', '2026']
published: true
image: './images/post-image.png'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Missing Post Image Asset

The frontmatter points at ./images/post-image.png, but this PR only adds the MDX file. If the blog pipeline resolves frontmatter images during build or page rendering, this post can produce a missing-asset error or a broken hero image when published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant