next-superjson-plugin icon indicating copy to clipboard operation
next-superjson-plugin copied to clipboard

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

Open FeldrinH opened this issue 1 year ago • 1 comments

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 avatar Aug 15 '23 21:08 FeldrinH

Agreed. This would be great!

kdelmonte avatar Sep 04 '23 21:09 kdelmonte