jaydenseric / graphql-react

A GraphQL client for React using modern context and hooks APIs that is lightweight (< 4 kB) but powerful; the first Relay and Apollo alternative with server side rendering.
https://npm.im/graphql-react
MIT License
717 stars 22 forks source link

NODE_ENV=production breaks preload #12

Closed jaydenseric closed 5 years ago

jaydenseric commented 5 years ago

All the tests pass normally for v4, but one fails when NODE_ENV=production, resulting in the following error:

Cannot read property 'currentValue' of undefined

I found this after deploying graphql-react v4 with graphql-react-examples 😞