Skip to content

RSC migration docs: Missing React on Rails Pro helper references #2524

@AbanoubGhadban

Description

@AbanoubGhadban

Summary

The RSC migration docs are missing references to key React on Rails Pro helpers that users need during migration.

Issues

B4. Missing guidance on stream_react_component_with_async_props

rsc-preparing-app.md (Step 6b) shows switching from react_component to stream_react_component, but doesn't mention stream_react_component_with_async_props. Since async props are the recommended data fetching pattern for RSC, the preparing guide should at least mention this helper and link to the data fetching guide for details.

B5. No mention of rsc_payload_react_component_with_async_props

The React on Rails Pro codebase provides rsc_payload_react_component_with_async_props for RSC payload generation with async props. The migration docs don't mention this helper anywhere. Users migrating components that use async props to RSC need to know about this variant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions