Skip to content

Built-in support option for Next.js app router and RSCs ("use client") #4268

Answered by serifluous
stern-shawn asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @stern-shawn ! Our engineering team started looking into this today.

In the meantime, @PixeledCode suggested:

you can export paste components like this from you paste.ts file, instead of individually exporting them:

"use client";

export * from "@twilio-paste/core";

There shouldn't be a need to use use client directive for Icons and types, but if they still, you can keep them in this file

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@stern-shawn
Comment options

stern-shawn Mar 12, 2025
Collaborator Author

@stern-shawn
Comment options

stern-shawn Mar 12, 2025
Collaborator Author

@PixeledCode
Comment options

Answer selected by stern-shawn
Comment options

stern-shawn
Apr 1, 2025
Collaborator Author

You must be logged in to vote
1 reply
@krisantrobus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants