Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Include cached data with error #548
This PR includes data cached from the Apollo store when there is an error while fetching the query. Now useful data can be displayed along with any error message.
For example, the server is down. An error will be returned as it always was. But until now, the
@helfer I tightened up the code and added test coverage. This one is good to go.
The test fails without my change to
referenced this pull request
Apr 17, 2017
Thanks @StevePotter, the test looks good!
This could technically break apps if a component only checks for data but not