-
Notifications
You must be signed in to change notification settings - Fork 271
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
data is undefined #8
Comments
@ZhangMYihua the code below works |
@princencu94 here is a working code: ...
... |
@juicecultus Wsup i tried that before i posted the issue and kept on getting the error so i guess it could |
@princencu94 could be, sort CORS first then, make sure it's loaded highest up in the list of app.use() |
Yeah, looks like we should destruct collection only after we got it
|
I've just had the same issue with it though I figured out that something with restructuring data object since the previous container worked perfectly well. Dunno, why people don't like to use a concise expression as a ternary operator
as for Query it's possible to use a useQuery hook.
then import it into your file
mind, you should do the same for Provider in index.js (just import it from "@apollo/react-hooks") that's... the rest - do as a docs says. |
Hi Yihua mmm i ran into a problem, well i guess with the versions that i have in my package.json i keep running into the error data is undefined, even tried using Hooks but i can't seem to crack it.
The text was updated successfully, but these errors were encountered: