React property of undefined error with Apollo data

I’m getting this error a lot with Apollo: TypeError: Cannot read property ‘x’ of undefined.

The errors I’m seeing are caused by a real error somewhere later, but the original error is lost, and the page/component is rendered a second time, and the data object becomes undefined on the second render.

I submitted a ticket on the React Apollo project but no reply. Has anyone seen something similar? Does anyone who understands React and Apollo have any ideas? I think the problem is related to Apollo, but I’m not sure.

I found another case where it displays the react “redbox”. Here I get the real error:

So now I’m wondering if these errors have something to do with webpack hot loader (we are using webpack-hot-middleware package).

This webpack hot middleware package seems very flaky. Is there a better option?