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

Saving a component in Next.js development mode casues infinite requests #3448

Closed
3 tasks done
lswinblad opened this issue Dec 6, 2023 · 1 comment
Closed
3 tasks done

Comments

@lswinblad
Copy link

Describe the bug

I'm not sure if I'm implementing this correctly, but saving a component when using the Next.js development mode causes queries to be made in an infinite loop.

It seems to be caused by having different URLs for server / client side. The only reference I could find to having different URLs depending on the context is in the old repository.

To reproduce

  1. npm run dev
  2. Open devtools in e.g. chrome
  3. Save a file after e.g. inserting a newline somewhere
  4. Observe infinite requests being made

Reproduction

https://stackblitz.com/edit/github-unakrx?file=app%2Furql-provider.tsx

Urql version

See package.json in reproduction

Validations

  • I can confirm that this is a bug report, and not a feature request, RFC, question, or discussion, for which GitHub Discussions should be used
  • Read the docs.
  • Follow our Code of Conduct
@JoviDeCroock
Copy link
Collaborator

Same as #3408, misses a Suspense boundary

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

No branches or pull requests

2 participants