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

Exception if variables are undefined #6

Closed
john-pc opened this issue Oct 3, 2019 · 6 comments
Closed

Exception if variables are undefined #6

john-pc opened this issue Oct 3, 2019 · 6 comments

Comments

@john-pc
Copy link

john-pc commented Oct 3, 2019

If there are no variables defined so it throws an exception.
In order to overcome this error i just pass "variables: {}" to all useQuery functions that i use

@tannerlinsley
Copy link
Collaborator

Could you screenshot the exception and stack trace please?

@john-pc
Copy link
Author

john-pc commented Oct 3, 2019

Noticed that it only happens when i not providing an object as the second parameter

Screen Shot 2019-10-03 at 17 12 53

@tannerlinsley
Copy link
Collaborator

Should be an easy fix :) Thanks!

@tannerlinsley
Copy link
Collaborator

Fixed!

@JaceHensley
Copy link

This seems to be an issue again, but it's _ref11 now (same function)

@tannerlinsley
Copy link
Collaborator

Currently working on the next major version. This will be fixed (actually the code causing this error won't even be in the library any more 😄) Stay tuned!

TkDodo referenced this issue in TkDodo/react-query Jun 5, 2021
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

3 participants