adamsoffer / next-apollo

React higher-order component for integrating Apollo Client with Next.js
MIT License
481 stars 64 forks source link

Installing react as a dependency causes Invalid Hook Call Warning #35

Closed Hilaryous closed 5 years ago

Hilaryous commented 5 years ago

This is related to #28. I believe listing react as a dependency is causing this issue within my application: https://reactjs.org/warnings/invalid-hook-call-warning.html#duplicate-react

At the very least react and `react-dom should be listed as peer dependencies to prevent this and possibly other issues from happening.

adamsoffer commented 5 years ago

Thanks for the PR :)