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

Cannot read property 'filter' of undefined #18

Closed
alexpchin opened this issue May 19, 2022 · 5 comments
Closed

Cannot read property 'filter' of undefined #18

alexpchin opened this issue May 19, 2022 · 5 comments

Comments

@alexpchin
Copy link

I've just begun to experiment with switching over from @apollo/client. I've changed useQuery across and am getting Cannot read property 'filter' of undefined.

variableDefinitions: definition.variableDefinitions.filter(function (_ref3) {

reducedQueries.js (231.28)
@mindnektar
Copy link
Owner

Hi there! Would you mind giving me an example query that is throwing this error? Then I can add it to the unit tests and provide you with a fix.

@alexpchin
Copy link
Author

Hi @mindnektar Am I right in thinking that this package doesn't work for react-native?

@mindnektar
Copy link
Owner

I've never tested it with react-native, so I'm afraid I can't answer that question. I'd naively assume that it probably should, since it's little more than a wrapper for @apollo/client and that does support it, but I can't be sure. If you give me a failing query, I can see if it works in the test suite, though.

@mindnektar
Copy link
Owner

@alexpchin I'm happy to support you if you give me an example query. Otherwise I'm going to have to close this issue since I cannot reproduce it.

@mindnektar
Copy link
Owner

Closed due to inactivity.

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