blitz
blitz copied to clipboard
Page during SSR generates with no data
What is the problem?
HTML from server returns with Loading... fallback and all data appears only on the client
Without <Suspense> tag page crashes and not displayed
Error exists even in production mode
What are detailed steps to reproduce this?
- npm install -g blitz@latest
- blitz new app (select TypeScript, Full and react-hook-form)
- cd app
- blitz dev
- create new user
- refresh index page

Run blitz -v and paste the output here:
Blitz version: 2.0.0-beta.3 (global)
Blitz version: 2.0.0-beta.3 (local)
Windows 11 | win32-x64 | Node: v16.14.2
Package manager: npm
System:
OS: Windows 10 10.0.22000
CPU: (6) x64 Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz
Memory: 6.59 GB / 15.84 GB
Binaries:
Node: 16.14.2 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.15 - C:\Program Files\nodejs\yarn.CMD
npm: 8.5.0 - C:\Program Files\nodejs\npm.CMD
npmPackages:
@blitzjs/auth: 2.0.0-beta.3 => 2.0.0-beta.3
@blitzjs/next: 2.0.0-beta.3 => 2.0.0-beta.3
@blitzjs/rpc: 2.0.0-beta.3 => 2.0.0-beta.3
@prisma/client: 4.0.0 => 4.0.0
blitz: 2.0.0-beta.3 => 2.0.0-beta.3
next: 12.2.5 => 12.2.5
prisma: 4.0.0 => 4.0.0
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
typescript: ^4.5.3 => 4.8.3
This may have something todo with https://github.com/blitz-js/blitz/issues/3840