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

Empty arrays return as empty objects #3695

Closed
3 tasks done
gilgardosh opened this issue Oct 21, 2024 · 1 comment · Fixed by #3696
Closed
3 tasks done

Empty arrays return as empty objects #3695

gilgardosh opened this issue Oct 21, 2024 · 1 comment · Fixed by #3696

Comments

@gilgardosh
Copy link

Describe the bug

On upgrading urql/core from 5.0.6 to 5.0.7 I noticed a weird bug, which causes my app to crush:
some results with empty arrays return as empty objects.
App fails on field?.includes(...) as includes is not a function.

Reproduction

TBD

Urql version

urql/core 5.0.7

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
@gilgardosh
Copy link
Author

gilgardosh commented Oct 21, 2024

Thanks @JoviDeCroock ♥️

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

Successfully merging a pull request may close this issue.

1 participant