React-apollo: TS2339: Property 'loading' does not exist on type 'DataValue<Response, Variables> | undefined'.

Created on 2 Jan 2019  路  5Comments  路  Source: apollographql/react-apollo

I keep getting the following errors:

image

I copied the code from the tutorial (https://www.apollographql.com/docs/react/recipes/static-typing.html):

image

Version

bug docs

Most helpful comment

I have the same problem. The destructuring in the docs and the one sugested by @JoviDeCroock does not work.

All 5 comments

I think your destructuring at the bottom should be: ({ loading, error, data : { hero } })

I have the same problem. The destructuring in the docs and the one sugested by @JoviDeCroock does not work.

Any updates/solutions about this error?

FYI - PRs for docs should be in the apollo-client repo - src https://github.com/apollographql/apollo-client/tree/master/docs

Was this page helpful?
0 / 5 - 0 ratings