Closed winner106 closed 2 years ago
Suspense + usePaginatedQuery infinite loop re-rendering
usePaginatedQuery
useQuery
Suspense
blitz -v
PS C:\Users\Administrator\Desktop\datasays> blitz -v Loaded env from C:\Users\Administrator\Desktop\datasays\.env.local Loaded env from C:\Users\Administrator\Desktop\datasays\.env Windows 10 | win32-x64 | Node: v16.13.1 blitz: 0.45.0 (global) blitz: 0.44.4 (local) Package manager: yarn System: OS: Windows 10 10.0.19043 CPU: (8) x64 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz Memory: 15.21 GB / 23.87 GB Binaries: Node: 16.13.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.17 - C:\Program Files\nodejs\yarn.CMD npm: 7.24.2 - ~\AppData\Local\Yarn\bin\npm.CMD Watchman: Not Found npmPackages: @prisma/client: 3.7.0 => 3.7.0 blitz: 0.44.4 => 0.44.4 prisma: 3.7.0 => 3.7.0 react: 18.0.0-beta-149b420f6-20211119 => 18.0.0-beta-149b420f6-20211119 react-dom: 18.0.0-alpha-5ca4b0433-20211020 => 18.0.0-alpha-5ca4b0433-20211020 typescript: ~4.5 => 4.5.4
No response
Hi, I just tried reproducing it with the same code, and it works fine for me. Maybe the problem is somewhere else outside of usePaginatedQuery + Suspense?
What is the problem?
Suspense + usePaginatedQuery infinite loop re-rendering
Paste all your error logs here:
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
usePaginatedQuery
oruseQuery
to fetch dataSuspense
wrap then componentRun
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
No response