blitz-js / blitz-js/next-superjson-plugin

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

Open
#90 1 comment 18 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
216
Forks
13
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading how the plugin currently handles the `data-superjson` attribute and how Next.js server components pass props to client components. Define the default-option behavior and verify that props are serialized without the attribute while existing opt-in behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, react
Domain
frontend, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.