`@trpc/next` with `ssr: true` breaks `getServerSideProps`
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
Solution: `@trpc/next` with `ssr: true` breaks `getServerSideProps`
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
Trust Score
1 verification
- 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
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
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep