I’m trying to follow the tutorial here: <https://w...
# prisma-whats-new
y
I’m trying to follow the tutorial here: https://www.graph.cool/docs/tutorials/create-react-apps-with-apollo-client-aidae4aeg5/ but when I run
yarn start
I keep getting an error that
this.props.data...
is undefined.
m
@yergi what exactly is the exception. is it something like
this.props.data.foo is undefined
?
y
The latter. I get that as a console error in the browser when I run
yarn start
.
m
the most common issue ive seen around this is that the
loading
property on
this.props.data
is not checked
if the loading property is true, then the results of the query on that data property dont exist yet
y
Ah, that’s what I missed. Thanks a ton!
m
no problem! ive stumbled through this myself and ive seen alot of other people as well
n
hey, just saw this
could you please create a PR @yergi? simple smile
m
@nilan im beginning to think you dont sleep. I'm not sure what timezone you are in but you are always there for us!
⬆️ 2
🤓 1
y
@nilan I don’t think there was anything wrong with the article - just me skipping over the “loading” part of the example code.
But still might be good to call that out separately, since if you forget that loading check nothing works!
About to head to bed but will create a PR on the article tomorrow.
n
awesome, feel free to use the "edit on github link" at the bottom of the article
appreciate any feedback! glad you're starting out