Skip to content

Conversation

@hi-ogawa
Copy link
Contributor

@hi-ogawa hi-ogawa commented Jul 10, 2025

Description

Mentioning that client.edge is also re-exported from @vitejs/plugin-rsc/rsc, which is necessary to implement Next.js "use cache" like caching semantics. See hi-ogawa/vite-plugins#1089 for more context.

@hi-ogawa hi-ogawa marked this pull request as ready for review July 10, 2025 04:18
@hi-ogawa hi-ogawa requested a review from Copilot July 10, 2025 04:20
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the README for plugin-rsc to call out that client.edge is also re-exported and expands the list of available RSC runtime exports.

  • Note that @vitejs/plugin-rsc/rsc now re-exports both server.edge and client.edge
  • Add new APIs (decodeAction, decodeReply, decodeFormState, loadServerAction, createTemporaryReferenceSet, encodeReply, createClientTemporaryReferenceSet) to the export list
Comments suppressed due to low confidence (1)

packages/plugin-rsc/README.md:221

  • The new exports are listed without descriptions. For consistency with the existing entries (which include brief explanations), consider adding a short description for each function.
- `decodeAction/decodeReply/decodeFormState/loadServerAction/createTemporaryReferenceSet`

@hi-ogawa hi-ogawa merged commit 822e7dd into main Jul 10, 2025
18 of 20 checks passed
@hi-ogawa hi-ogawa deleted the 07-10-chore_rsc_update_readme branch July 10, 2025 04:44
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.

2 participants