Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: app router useSuspenseQuery infinite loop #1771

Closed
mladenovic-13 opened this issue Feb 22, 2024 · 1 comment · Fixed by #1772
Closed

bug: app router useSuspenseQuery infinite loop #1771

mladenovic-13 opened this issue Feb 22, 2024 · 1 comment · Fixed by #1772

Comments

@mladenovic-13
Copy link
Contributor

Provide environment information

System:
OS: macOS 14.4
CPU: (8) arm64 Apple M1
Memory: 84.89 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.2.0 - ~/.nvm/versions/node/v20.2.0/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 9.6.6 - ~/.nvm/versions/node/v20.2.0/bin/npm
pnpm: 8.15.3 - ~/.nvm/versions/node/v16.13.0/bin/pnpm

Describe the bug

When useSuspenseQuery is used insite app router route, an infinite loop occurs

Reproduction repo

To reproduce

const [data, query] = api..useSuspenseQuery()

Additional information

I apologize in advance if I opened the issue poorly, as it's my first one ever. :)

@ayoubphy
Copy link

ayoubphy commented May 8, 2024

Apologies for dropping in on this again, but it seems that #1722 didn't solve the issue, using useQuery still causes an infinite loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants