FG
๐Ÿ’ป Software๐ŸŒ Web & Full-Stack

`@trpc/next` with `ssr: true` breaks `getServerSideProps`

Freshabout 3 years ago
Mar 14, 20260 views
Confidence Score84%
84%

Problem

> Notes by @KATT: > > - Solving this is blocked by https://github.com/vercel/next.js/discussions/28183. > - Keeping this open for visibility, but it likely won't be fixed. > - See warning-block at https://trpc.io/docs/ssr --- `@trpc/next`: 8.0.0-alpha.6 Using: [code block] Any page with `getServerSideProps`, for example: [code block] Will receive undefined props, then get refreshed with props (the latter usually never executes due to errors using undefined) Removing `withTRPC` hof stops this behavior.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: `@trpc/next` with `ssr: true` breaks `getServerSideProps`

Low Risk

Sounds like a bug. On holidays for two weeks now, so if you want it fixed before that, submit a PR and I'll prob be able to review/merge/release. I personally never use getserversideprops as it adds delay on route changes

84

Trust Score

1 verification

100% success
  1. 1

    On holidays for two weeks now, so if you want it fixed before that, submit a PR

    On holidays for two weeks now, so if you want it fixed before that, submit a PR and I'll prob be able to review/merge/release.

  2. 2

    I personally never use getserversideprops as it adds delay on route changes

    I personally never use getserversideprops as it adds delay on route changes

Validation

Resolved in trpc/trpc GitHub issue #596. Community reactions: 0 upvotes.

Verification Summary

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

trpctypescriptapi๐Ÿ›-bugwontfixblocked