You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ayoubphy
changed the title
bug: Infinite loop when using useQuery or useSuspenseSuery
bug: Infinite loop when using useQuery or useSuspenseQuery
May 8, 2024
Provide environment information
System:
OS: Windows 11 10.0.22000
CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 7.71 GB / 15.89 GB
Binaries:
Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
npm: 10.5.1 - C:\Program Files\nodejs\npm.CMD
pnpm: 8.14.0 - ~\AppData\Roaming\npm\pnpm.CMD
bun: 1.1.3 - ~.bun\bin\bun.EXE
Describe the bug
useQuery keeps infinitely refetching. There was a previous bug report #1771 and a fix was merged in #1772 but it doesn't seem to have fixed the issue.
Reproduction repo
N/A
To reproduce
call
trpc.route.procedure.useQuery()
ortrpc.route.procedure.useSuspenseQuery()
inside a page.tsxAdditional information
No response
The text was updated successfully, but these errors were encountered: