Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to conditional RSC imports #504

Open
chrisvxd opened this issue Jun 7, 2024 · 1 comment
Open

Switch to conditional RSC imports #504

chrisvxd opened this issue Jun 7, 2024 · 1 comment

Comments

@chrisvxd
Copy link
Member

chrisvxd commented Jun 7, 2024

Following this convention on RFC 0227, we should consider using conditional imports that many frameworks (including Next.js) will support OOTB when rendering server components.

This will mean that users no longer need to explicitly import the rsc module when using Puck: https://puckeditor.com/docs/integrating-puck/server-components

This may become irrelevant as part of #255, which may result in the Render component from the core Puck package being RSC-friendly.

@chrisvxd
Copy link
Member Author

chrisvxd commented Jun 7, 2024

CC @4leite wanted to track this following our discussion back in March.

Related: #498

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

No branches or pull requests

1 participant