React-apollo: [2.0] error in data prop from HOC is undefined when query has an error

Created on 5 Oct 2017  路  6Comments  路  Source: apollographql/react-apollo

Trying to access the error property of the data object from HOC returns undefined even when a query has an error.

Version

Most helpful comment

@bogdansoare Fixed with apollo-client2.0.2!

All 6 comments

I've recreated the issue on codesandox https://codesandbox.io/s/lrwvwr41pl

This issue has been automatically labled because it has not had recent activity. If you have not received a response from anyone, please mention the repository maintainer (most likely @jbaxleyiii). It will be closed if no further activity occurs. Thank you for your contributions to React Apollo!

@jbaxleyiii could you please take a look at the issue. Thanks

@bogdansoare thanks so much! sorry I missed this early on! It will be fixed via https://github.com/apollographql/apollo-client/pull/2491

@jbaxleyiii no worries, thank you for the all the effort 鉂わ笍

@bogdansoare Fixed with apollo-client2.0.2!

Was this page helpful?
0 / 5 - 0 ratings