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

Support for using superjson by default with server components (without data-superjson) #90

Open
FeldrinH opened this issue Aug 15, 2023 · 1 comment

Comments

@FeldrinH
Copy link

It would be nice if there was an option to enable data-superjson by default for React components, so any props passed from server component to client component are automatically serialized using superjson. With the data-superjson attribute it is easy to forget to add it, which can cause weird bugs that TypeScript can't protect you against.

@FeldrinH FeldrinH changed the title Support for using superjson by default in app directory (without data-superjson) Support for using superjson by default with server components (without data-superjson) Aug 19, 2023
@kdelmonte
Copy link

Agreed. This would be great!

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

No branches or pull requests

2 participants